FormMail required fields

Hello,

A very simple question on an old script. FormMail.pl

I have tried to make some fields "required" and the syntax I'm using is, Ex.:



<form method="POST" action="/cgi-bin/FormMail.cgi">
<input type=hidden name="recipient" value="1">
<input type=hidden name="subject" value="info">
<input type=hidden name="redirect" value="http://www.xxxxxxxxxxxxxxxxx.html>
<input type=hidden name="required" value="Name, question,email,where,Capital,Telephone">
<input type=hidden name="env_report" value="REMOTE_ADDR, HTTP_USER_AGENT">

All stated required fields are recognized by the script as "required", except two of them: "where" and "Capital" , which are Drop down menu type and an option should be slected by the visitor, the syntaxis I'm using is:


<select name="where">
<option value="Select..." selected>Select...</option>
<option value="Google">Google</option>
<option value="Altavista">AltaVista</option>
</select>



<select size="1" name="Capital">
<option selected>Selecciona</option>
<option value="$15,000-25,000">$15,000-25,000</option>
<option value="$25,000-35,000">$25,000-35,000</option>
<option value="$35,000-45,000">$35,000-45,000</option>
<option value="$45,000 +">$45,000 +</option>
</select>


The script and the form works just fine the only problem is that those 2 required (option select) fields are ignored as "required" by the script. I should be missing something in the syntax. I would appreciate any clue on this. Thank you.

 

 

 

 

Top