form
HTML form Element
The HTML <form> element is used to create forms and serves as the parent element for all of your form components. Parsing the data that is submitted requires a server side technology like PHP which has the built in mail() function.
HTML CODE EXAMPLE
<form action="contact_parse.php" name="myForm" method="post">
Your Name:<br />
<input type="text" name="senderName" /><br />
Your Email:<br />
<input type="text" name="senderEmail" /><br />
Your Message:<br />
<textarea name="senderMsg" cols="24" rows="4"></textarea>
<br /><br />
<input name="Submit" type="submit" value="Submit Information" />
</form>
Your Name:<br />
<input type="text" name="senderName" /><br />
Your Email:<br />
<input type="text" name="senderEmail" /><br />
Your Message:<br />
<textarea name="senderMsg" cols="24" rows="4"></textarea>
<br /><br />
<input name="Submit" type="submit" value="Submit Information" />
</form>
Your Name:
Your Email:
Your Message:
Your Email:
Your Message:
Attributes for this element:
action - specify the parsing file for the form data when it is submit
Possible Values: "relative or full URL string"
enctype - specify the encoding type for the form submission
Possible Values: "text/plain", "multipart/form-data", "application/x-www-form-urlencoded"
method - specify the HTTP method for the form data
Possible Values: "post", "get"
name - specify the name of the form element
Possible Values: "you define form name"
target- specify the browser window target for the form submission
Possible Values:"_blank", "_self", "_parent", "_top"
accept-charset - specify character encodings for the form data
Possible Values: "valid mime type"
global attributes - global core attributesSee: list of global attributes
Possible Values: "relative or full URL string"
enctype - specify the encoding type for the form submission
Possible Values: "text/plain", "multipart/form-data", "application/x-www-form-urlencoded"
method - specify the HTTP method for the form data
Possible Values: "post", "get"
name - specify the name of the form element
Possible Values: "you define form name"
target- specify the browser window target for the form submission
Possible Values:"_blank", "_self", "_parent", "_top"
accept-charset - specify character encodings for the form data
Possible Values: "valid mime type"
global attributes - global core attributesSee: list of global attributes
New HTML5 attributes for this element:(applies 2014)
novalidate - specify that the form is not meant to be validated when submit
Possible Values: "novalidate"
autocomplete - toggle the browser ability to store and pre-fill form fields
Possible Values: "on", "off"
Possible Values: "novalidate"
autocomplete - toggle the browser ability to store and pre-fill form fields
Possible Values: "on", "off"
0 Response to "form"
Post a Comment