Form target attribute, PHP Web Programming

Assignment Help:

Corresponds to the FORM TARGET attribute.

• Text - It is an object representing a text field.

• Text area - It is an object representing a text area field. Some of the Form Element Properties are:

• Name - It provides access to an element's name attribute. It applies to all of the form elements.

• Type - it is for identifies the object's type. It applies to every form elements.

• Value - it is for identifies object's value. It applies to all checkbox, hidden, button radio, submit, password, reset, text or textarea.

• Checked - This is for identifies whether the element is checked. It applies to checkbox & radio only.

• Default checked - This is for identifies whether the element is checked by default. This applies to checkbox & radio only.

• Default value - it is for identifies the object's default value. It applies to submit, password and textarea.

• Length - This is for identifies the length of a select list. This applies to select.                                             

• Options - An array which identifies the options supported by the select list. It applies to select.

Syntax : <FORM Name = "myform" Action = "mailto:[email protected]" Method               

= POST Ectype = "multipart/form-data" on submit = "return check ( )" >                                  

<HTML>                                                                                                                                           

<HEAD>

<SCRIPT LANGUAGE = "javascript">                                                                                         

function check ()                                                                                                                               

{ if (document.myform.email.value  == "") {

alert("please enter your email-id");                                                                       

return false; }                                                                                                         

}                                                                                                                                            

</SCRIPT>                                                                                                                                       

</HEAD>                                                                                                                                           

<BODY>                                                                                                                                          

Enter your Email to subscribe : <p>                                                                                                

<FORM Name = "myform" Action = "mailto:[email protected]" Method = POST

Enctype = "multipart/form-data" onsubmit = "return check()" >                                                   

<Input type = "text" Name = "email">                                                                              

<Input type = "submit" value = "submit">                                                                        

</FORM>                                                                                                                                         

</BODY>                                                                                                                                          

</HTML>                                                                                                                                         

 

The above code is utilized for obtaining the user's email-id. In case the user clicks on to the submit button without entering the email-id in the wanted text field, he sees a message box represent ting that the email-id has not been entered.


Related Discussions:- Form target attribute

We need joomla-php-mysql developer, We Need Joomla-PHP-MySQL Developer W...

We Need Joomla-PHP-MySQL Developer We need a developer who can work on our website built on Joomla to focus. Candidate must be very strong in Joomla, PHP, MySQL Development.

Date, Returns the current date comprising date, month, & year. Note that th...

Returns the current date comprising date, month, & year. Note that the getMonth method returns 0 in December, 1 in January etc. thus add 1 to the getMonth method to display the cor

We need a new website build, We need a New website build, CMS integration, ...

We need a New website build, CMS integration, Logo design and SEO Because of recently relocation abroad I am keen to revamp my previous business in a more exciting online way to

We require a web developer for simple website, We require a Web Developer f...

We require a Web Developer for simple website I need simple website Consist of PHP, JavaScript, HTML 5 Desired Skills are JavaScript, PHP, HTML5

Array object, It is used to store a set of values in single variable name. ...

It is used to store a set of values in single variable name. Each of value is an element of the array and contains related index number. You can refer to a specific element in the

Wordpress script needed for poker site, Monthly Poker Ranking well-matched ...

Monthly Poker Ranking well-matched with Wordpress My website by now have a poker ranking The ranking is pretty modest. I feed it uploading XLS files which are very simple, up

Nodejs developers to move for a startup, NodeJS Developers to move to Thail...

NodeJS Developers to move to Thailand for a startup Description- I am looking to hire two NodeJS developers to join me for a minimum of 6 months (no max. time) as well as develo

We need to create web chat application, We need to create Web Chat Applicat...

We need to create Web Chat Application Please read project requirements- general info- Its web chat application which supports audio as well as video chat - I do not want

Tcp - ip networking model, This is an acronym for Transmission Control Prot...

This is an acronym for Transmission Control Protocol / Internet Protocol. This is a collection of applications, protocols and services. TCP/IP protocol was developed prior to the O

Simple website development with affiliate features, Simple website developm...

Simple website development with affiliate features I want to create quite simple website that would refer to other websites in order to benefit from their affiliate programs (af

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd