ebizartistry
2007-04-20 04:37:29 UTC
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
We Welcome your comments!
AmeriMex Restaurant
Comment Form
"Tell us what you think"
Please fill out the following form
and press the SUBMIT button below:
Three answers:
BlueFeather
2007-04-20 07:27:14 UTC
There are usually multiple ways of accomplishing any given task.
The sample page is just one way of demonstrating how to do validation of form elements.
For the sake of simplicity and brevity, it is about as BARE BONES as it can get.
COMMENTS
1. People are VERY UNLIKELY to provide personal information like name, phone, and email.
2. Radio buttons are typically used for mutually exclusive items; therefore, you don't need to say "Choose Only One"
3. Comments are usually optional so they don't need to be part of the verification
4. Since you require the phone number to be exactly 10 digits, you need to tell users not to use hyphens and/or provide an example
5. Users need to be told that the Reset button will clear the entire form - destroying anything they may already have entered
6. Note that I have made one of the radio buttons show up as checked (initially) - to show you how it is done
7. The verification code is not complete - I've given only enough to illustrate the process
8. There are ways to prevent entry of numbers when you expect only letters (and vice versa) but I have not included any of that (for brevity and because it can be confusing)
9. There is a LOT more that could be included but, hopefully, this will be enough to help you understand
Here is the sample page:
carolann
2016-05-19 08:02:01 UTC
2007-04-20 06:35:05 UTC
This line determines the location of the cgi script which will receive and process the form data once it has been submitted.