CPT 106
Franklin College
Fall 2003
Erich Prisner,

Dealing with

Forms in Webpages

Look on that example form.

HTML---creating the form

your browser cannot display this hint on column width

 

Javascript---validation

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.

PHP---validation and ...

your browser cannot display this hint on column width
your browser cannot display this hint on column width

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.

MySql

 


Erich Prisner, September 2003