Click to See Complete Forum and Search --> : NSM-FormMail.PL - Trouble with redirecting to url


Buhbur
08-01-2007, 06:26 PM
Hello Everyone,

I'm fairly new to cgi scripts and such so bare with me. I've been trying to redirect my site after submission of the form, but instead I get the default FormMail.PL 'Thank You' page. I would like it to redirect to the homepage of my site but this is proving to be difficult. I've tried using the hidden fields but they are no go. Here is my form for the html:

<form action="http://www.rex-la.com/cgi-bin/FormMail.pl" method="post" enctype="text/plain" name="Catalog" id="Catalog">
<input name="recipient" type="hidden" value="daniel@rex-la.com" />
<input name="subject" type="hidden" value="Catalog Request!" />
<input name="redirect" type="hidden" value="http://www.rex-la.com" />
<table width="700" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="269" class="style1"><div align="right">Name</div></td>
<td width="420"><label>
<input name="Name" type="text" id="Name" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Company Name </div></td>
<td><label>
<input name="Company Name" type="text" id="Company Name" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Address</div></td>
<td><label>
<input name="Address" type="text" id="Address" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Address (Cont.) </div></td>
<td><label>
<input name="Address (Cont)" type="text" id="Address (Cont)" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">City</div></td>
<td><label>
<input name="City" type="text" id="City" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">State</div></td>
<td><label>
<input name="State" type="text" id="State" size="2" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Zip/Postal Code </div></td>
<td><label>
<input name="Zip Code" type="text" id="Zip Code" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Country</div></td>
<td><label>
<input name="Country" type="text" id="Country" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Phone Number </div></td>
<td><label>
<input name="Phone" type="text" id="Phone" size="35" />
</label></td>
</tr>
<tr>
<td class="style1"><div align="right">Email</div></td>
<td><label>
<input name="Email" type="text" id="Email" size="35" />
</label></td>
</tr>
</table>
<br />
<input name="Submit" type="submit" value="Submit" />
<input name="Reset" type="reset" id="Reset" value="Reset" />
</form>

Can the tables i've inserted be the culprit of the malfunction? Or maybe there something I need to activate or input in the FormMail.PL?

It seems like my hidden fields are malfunctioning seeing that the 'subject' and 'recipient' fields don't work as well

Buhbur
08-02-2007, 06:44 PM
well i figured it out after just playing around with it. seems like the

<input name="recipient" type="hidden" value="daniel@rex-la.com" />
<input name="subject" type="hidden" value="Catalog Request!" />
enctype="text/plain"

these just don't work with

<input name="redirect" type="hidden" value="http://www.rex-la.com" />

...well at least for me it doesn't.