If the user has not completed more than one field, then they will see an alert box appear for each field that is missing.
Now you know how to write a form validation script that can handle multiple form fields, including text boxes, radio buttons, drop-down lists and check boxes!
So if you select the second item in the drop down, a text field associated with that selection appears.
My issue is how to make that text field required, but only required based on drop down selection. I am writing a script that validates two select menus. I need to check that it is not "empty" and if not they are alpha characters with -, space and ' special characters and with a limit of 30 chars. @eyefly: I'm guessing you're using cgiemail to process your form on the server?
We'll also look at how to check other types of fields, such as checkboxes, radio buttons and drop-down lists.