Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mailform script

Status
Not open for further replies.

celieb

Technical User
Jul 26, 2004
5
GB
I don't know whether I should be asking a different forum about this but here goes...

I have put in a form in my web page and am using some cgi script to redirect and mail the form back me. I have put in the code below (obviously all the *'s are correct in my proper form). The problem is that I am not getting any data returned to my email. I just get the following:

required
From: ()
Subject: Submission

Below is the result of your feedback form. It was submitted by
() on Wednesday, October 13, 2004 at 13:46:31
------------------------------------------------------
And everything here is blank!


This is my form code....

<form action="cgi-bin/mailform.pl" method="POST" enctype="text/plain" name="*" id="*">
<input type="hidden" name="recipient" value="*@*.co.uk"><input type="hidden" name="required" value="Bridefirstname, Bridesurname, Address, Postcode, Email">
<input type="hidden" name="subject" value="*">
<input type="hidden" name="redirect" value="
<table width="100%" height="386">
<tr>
<td width="21%" align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">*Bride's Name</font></td>
<td width="79%"><input name="Bridefirstname" type="text" id="Bridefirstname" size="15" maxlength="15"> <input name="BrideSurname" type="text" id="BrideSurname" size="15"></td>
</tr>
<tr>
<td align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">*Groom's
Name</font></td>
<td><input name="GroomFirstName" type="text" id="GroomFirstName" size="15"> <input name="GroomSurname" type="text" id="GroomSurname" size="15"></td>
</tr>
<tr valign="top">
<td height="63" align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">*Address</font></td>
<td><textarea name="Address" cols="30" rows="4" id="Address"></textarea></td>
</tr>
<tr>
<td align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">*Postcode</font></td>
<td><input name="Postcode" type="text" id="Postcode"></td>
</tr>
<tr>
<td height="26" align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">Telephone</font></td>
<td><input name="Telephone" type="text" id="Telephone"></td>
</tr>
<tr>
<td align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">*Email</font></td>
<td><input name="Email" type="text" id="Email"></td>
</tr>
<tr>
<td height="21" align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">Approx
Wed Date</font></td>
<td><input name="Wedding Date" type="text" id="Wedding Date"></td>
</tr>
<tr>
<td height="26" align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">Guest
Numbers</font></td>
<td><input name="Guests" type="text" id="Guests"></td>
</tr>
<tr>
<td height="104" align="right" valign="top"><font size="1" face="Georgia, Times New Roman, Times, serif">Comments</font></td>
<td valign="top"><textarea name="Comments" cols="30" rows="4" id="Comments"></textarea>
<input name="Submit3" type="submit" value="Send "></td></tr>


</table>
</form>

Any ideas about this? I am tearing my hair out so it would be much appreciated!

C
 
i dont know much about perl, but try removing this:
enctype="text/plain"

Known is handfull, Unknown is worldfull
 
the real file to look at is:
mailform.pl
that should be renamed into .cgi and chould be place in your /cgi-bin

All the best!

:--------------------------------------------------------------------------:
fugitive.gif

ok,ok...I did shoot the deputy but he told me he was the sheriff!
:--------------------------------------------------------------------------:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top