Page is a not externally linkable
ShawnR - 10:22 pm on Jun 19, 2003 (gmt 0)
The way I do it is to have the form element name e.g. Required: Then I loop through all of the form's elements, testing for whether the name starts with "required", and if so I use a switch to handle the different types of form elememnts.
"... use the required attribute on all form elements... The only issue I have with it is that my code does not validate as XHTML Strict because of the required attribute. Anyone know of a way around that? ..."
Not required:
<input type="text" name="textbox1" ...
<input type="password" name="