FORM - How to Use IT


How do I use forms?

✍: FYIcenter


The basic syntax for a form is: <FORM ACTION="[URL]">...</FORM> When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. This URL should refer to a server-side (e.g., CGI) program that will process the form data. The form itself should contain some input fields and a submit button:

  • At least one submit button (i.e., an <INPUT TYPE="submit" ...> element)
  • Form data elements (e.g., <INPUT>, <TEXTAREA>, and <SELECT>) as needed
  • Additional markup (e.g., identifying data elements, presenting instructions) as needed

2007-03-03, 6616👍, 0💬