CPT 106
Franklin College
Fall 2003
Erich Prisner,
Look on that example form.
You check with Javascript whether the user filled out necessary fields correctly. You shouldn't leave this completely to PHP, since it is quicker done on the Client computer with Javascript.
Don't forget to validate again with PHP on the server---some user don't have javascript eneabled, for instance. You can access the data under $name, if the form object has the name "name" (but there is also the associative array possibility mentioned to the right.
Erich Prisner, September 2003