Set the field names in your form that require data. The script can check for any data, just numbers or just an email address.<input type="hidden" name="required_fields" value="field,name">
<input type="hidden" name="required_fields_numbers" value="field,name">
<input type="hidden" name="required_fields_email" value="field,name">
In between the enclosed brackets place a name of the form field you would like to make required, either just any entry, either letters or numbers in the @required_fields.
So If you want a name and comments text boxed filled in, add a name="" to your form field, like so:
<input name="surname" id="surname" type="text" />
<textarea name="comments" cols="35" rows="5" id="comments"></textarea>
And ensure that this corresponds with what you have in the enclosed brackets on the required_fields. So above for instance I have a text box for customers name, and a text area for comments, and have made them both required fields.
If you have a form field to collect an email address, then you just do the same thing.
<input name="mailadd" id="email" type="text" />
As you can see, I have named the form field for email collection as "mailadd" and also called it the same in the script below.
my @required_fields = (surname,comments);
my @required_fields_numbers = ();
my @required_fields_email = (mailadd);
If you have a field for telephone number the same applies.
Hope helps anyone.
geoffb