MarkM
29 Dec 2005, 12:45 PM
I am having an issue with required fields using Matt's script.
If I use the same required function using the old standard formmail.cgi, no issues, but with Matt's script, it doesn't like something.
If I only use "name" in the required field, all is fine, but if I add anything else, it just acts like I didn't complete a required field (even if I type in each field).
Here is the HTML part:
<form name="form1" method="post" action="http://www.XXXXX.com/mattfm.php" target="_top">
<INPUT TYPE="HIDDEN" NAME="redirect" VALUE="http://www.XXXXX.com/thankyounew.shtml">
<INPUT TYPE="HIDDEN" NAME="subject" VALUE="Contact message from your website">
<input type="hidden" name="required" value="name,email,address,city,state,zip">
<table width="438" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="101">Name:</td>
<td colspan="3"><input name="name" type="text">
<span class="required">*</span></td>
</tr>
<tr>
<td>Email:</td>
<td colspan="3"><input name="email" type="text">
<span class="required">*</span></td>
</tr>
<tr>
<td>Phone: </td>
<td colspan="3"><input name="phone" type="text">
</td>
</tr>
<tr>
<td>Address</td>
<td colspan="3"><input name="address" type="text" >
<span class="required">*</span></td>
</tr>
<tr>
<td>City, State, Zip</td>
<td width="144">
<div align="left">
<input name="city" type="text"size="20">
</div></td>
<td width="74"><input name="state" type="text"size="10">
</td>
<td width="99"><input name="zip" type="text"size="10">
<span class="required">*</span></td>
Any idea what I am missing here or doing wrong?
Again, if I only have <input type="hidden" name="required" value="name"> all is fine. Only the name field is required and responds accordingly. But when I add the other required and complete all fields, it acts like I didn't complete one.
Thanks for your help!
If I use the same required function using the old standard formmail.cgi, no issues, but with Matt's script, it doesn't like something.
If I only use "name" in the required field, all is fine, but if I add anything else, it just acts like I didn't complete a required field (even if I type in each field).
Here is the HTML part:
<form name="form1" method="post" action="http://www.XXXXX.com/mattfm.php" target="_top">
<INPUT TYPE="HIDDEN" NAME="redirect" VALUE="http://www.XXXXX.com/thankyounew.shtml">
<INPUT TYPE="HIDDEN" NAME="subject" VALUE="Contact message from your website">
<input type="hidden" name="required" value="name,email,address,city,state,zip">
<table width="438" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="101">Name:</td>
<td colspan="3"><input name="name" type="text">
<span class="required">*</span></td>
</tr>
<tr>
<td>Email:</td>
<td colspan="3"><input name="email" type="text">
<span class="required">*</span></td>
</tr>
<tr>
<td>Phone: </td>
<td colspan="3"><input name="phone" type="text">
</td>
</tr>
<tr>
<td>Address</td>
<td colspan="3"><input name="address" type="text" >
<span class="required">*</span></td>
</tr>
<tr>
<td>City, State, Zip</td>
<td width="144">
<div align="left">
<input name="city" type="text"size="20">
</div></td>
<td width="74"><input name="state" type="text"size="10">
</td>
<td width="99"><input name="zip" type="text"size="10">
<span class="required">*</span></td>
Any idea what I am missing here or doing wrong?
Again, if I only have <input type="hidden" name="required" value="name"> all is fine. Only the name field is required and responds accordingly. But when I add the other required and complete all fields, it acts like I didn't complete one.
Thanks for your help!