PDA

View Full Version : CGI form not emailing


litenup
09-02-2006, 03:20 AM
Need help getting this form to work. This is my current code:

<form action="http://www.litenupcandles.com/cgi/formmail" method="post" name="Email Form" id="Email Form">
<table width="460" border="0" bgcolor="#900000">
<tr>
<td width="150"><span class="style28">Store Name / dba </span></td>
<td width="300"><input name="storename" type="text" id="storename" size="50"></td>
</tr>
<tr>
<td><span class="style28">Resale Number </span></td>
<td><input name="resalenumber" type="text" id="resalenumber" size="50"></td>
</tr>
<tr>
<td><span class="style28">Email Address </span></td>
<td><input name="emailaddress" type="text" id="emailaddress" size="50"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
<input name="Reset" type="reset" id="Reset" value="Reset Form">
<input name="mailto" type="hidden" value="wholesaleinfo@litenupcandles.com">
<input name="subject" type="hidden" value="the subject of the email">
</div></td>
</tr>
</table>
</form>

Can anyone figure what is wrong. Have never done this before and am not experienced in writing code. This is just a simple request from my customers for their store name, resale number and email address. I will be placing it on page:

http://www.litenupcandles.com/wholesaleinfo.html

Thanks for any help

4um
09-02-2006, 03:30 AM
The action attribute value is incorrect. http://www.litenupcandles.com/cgi/formmail is a 404.

litenup
09-02-2006, 07:16 AM
Yes, am getting that error message but don't know what the correct action is. That is my problem. Any more suggestions as will remain stuck. Thanks.

NiteOwl
09-02-2006, 09:24 AM
the
action=http://www.litenupcandles.com/cgi/formmail
in your form tag does not point to a script


change to
action=cgi-bin/formmail.cgi
or
action=cgi-bin/formmail/formmail.cgi

hope this helps.