Wednesday, 18 December 2013

FORM


form

Defines a form allowing user-inputted data to be sent somewhere. It is used with elements such as input, select and textarea.

Attributes
  • action is used to specify where the form is sent to. It must take the form of a URI.
Optional Attributes
  • method can be used to specify how the form is sent. The value must be get (default), which bolts the form values onto the URI or post which invisibly sends the form data in the body of the HTTP request.
  • enctype can be used to specify the MIME type used to encode the form data. The default value is application/x-www-form-urlencoded, but this should be multipart/form-data when the form contains a file input element.
  • accept can be used to specify which file-types (selected from a file input element) should be accepted. This is a comma-separated list of MIME types.
  • accept-charset can be used to specify which character sets should be accepted. This is a comma-separated list.
Example

<form action="/somedirectory/somforgscript.php" method="post">
        <div>House number: <input type="text" name="housenumber" /></div>
        <div>Street: <input type="text" name="street" /></div>
        <div><input type="submit" /></div>
</form>

No comments:

Post a Comment

Physics basic inventions and inventors

1.Which instrument is used to measure altitudes in aircraft's ? Audiometer Ammeter Altimeter Anemometer Explanation : ...