HTML and CSS Reference
Figure 11.8 An HTML form.
has been filled out, the user clicks a Submit button and the information is normally sent
from the browser to a server in a URL-encoded format. The server then calls a server
helper application such as PHP or CGI to handle the information. So where does Java-
Script come into all of this? Well, before sending the form information to the server,
fields. For example, it can check for the correct format of a credit card number, e-mail
address, zip code, and so on. In addition, rather than having the user submit the form,
initiated events, and call functions to handle the data that was submitted.