Using Forms in Web Development

You can get input from your users via HTML form elements. You can have many forms on a page. If they are named, you can refer to them by name. You can also refer to a form by its index into the zero-based forms array.

Each form can have any one of the standard HTML form elements. These include single-line text, radio, checkbox, hidden, password, reset, and submit. There is also a select widget, which can be either a drop-down list or open list, and a text area widget, which can be used to collect large amounts of text spanning multiple lines.

When you submit a form, all the values of the various form elements are retrieved, parsed, and concatenated with the location object:
  • They are placed in the path and preceded by question marks (?).
  • The value of is precisely that string, including the question mark (?).
  • This string is not just a simple list of element contents, however.
  • Each item value is placed in the string in the form elementName=elementValue and followed by an ampersand (&).
  • Any non-alphanumeric characters are coded or escaped.
  • The ASCII value of any such character is changed into a two-digit hex number preceded by a percent sign (%).
  • If text field or text area elements have multiple words, these words are separated by a plus sign (+).
Consequently, when you get the string, you have to decode it to get the various form elements that it contains.



Server Location


Visit Now

Cloud SSD Hosting
$1.43 /mo. WILMINGTON, DE, US Price @ $1.43 /mo. Visit Now
247-host $2.99 /mo. LASALLE, CA Price @ $2.99 /mo. Visit Now $2.75/mo. Burlington, MA, US Price : $2.75/mo. Visit Now
Lifetime Free Domain
$3.95/mo. Panama, PA Start @ $3.95/mo. Visit Now
webhostingpad $1.99/mo. Arlington Heights, IL, US Start @ $1.99/mo. Visit Now
webhostingbuzz $4.95/mo AUBURN, MA, US Start @ $4.95/mo Visit Now
Cheapest Webhosting
$3.25/mo. Burlington, MA, US Start @ $3.25/mo. Visit Now
ixwebhosting $3.95/mo Columbus, OH, US Start @ $3.95/mo Visit Now
sitevalley $4.95/mo NASHUA, NH, US Start @ $4.95/mo Visit Now
Managed WordPress Hosting
$89.00/mo. Lansing, MI, US Price : $19.00/mo. Visit Now

Published by ananovareviews

I'm Communication Director with SCPL. Our goal is to deliver the most accurate information possible based on the needs of the majority of website owners and developers, and Ananova reports deliver the most reliable indicators of web host performance. -

%d bloggers like this: