Hello. I'm attempting to write a form for a web page which is using the formmail.pl script. The form works fine and all but it its the script in which i am having troubles. What I would like it to do is to relay a confirmation e-mail with the data to the sender, but also send an identical mail to a specified admin address for collecting the data. The form current sends data to just the admin address. The other issue which I am encountering is how to get the data from all fields in the html page to relay to the body portion of the e-mail. It current sends all the data from the other fields (groupname,email ect...) within the body, but the name (realname) is placed within the header of the e-mail.
This is the form portion of the html page
-
-
<FORM METHOD="POST" ACTION="/cgi-sys/formmail.pl">
-
-
-
<INPUT TYPE="hidden" NAME="recipient" VALUE="anemail@email.com">
-
<INPUT TYPE="hidden" NAME="subject" VALUE="Registration">
-
<INPUT TYPE="hidden" NAME="env_report" VALUE="REMOTE_HOST,HTTP_USER_AGENT">
-
<INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.awebaddress.com/submit.html">
-
<INPUT TYPE="hidden" NAME="sort" VALUE="order:realname,groupname,phone,email,tickets,time,message">
-
-
Your Full Name (As group contact) : <BR>
-
-
<INPUT NAME="realname" TYPE="text" size="30">
-
<BR> <BR>
-
-
Name of group : <BR>
-
-
<INPUT NAME="groupname" TYPE="text" size="30">
-
<BR> <BR>
-
-
Phone number : <BR>
-
-
<INPUT NAME="phone" TYPE="text" size="14" maxlength="12">
-
<BR> <BR>
-
-
Please enter your e-mail address : <BR>
-
-
<INPUT NAME="email" TYPE="text" size="30">
-
<BR> <BR>
-
-
Number of Tickets required : <BR>
-
-
<INPUT NAME="tickets" TYPE="text" size="5" maxlength="3">
-
<BR> <BR>
-
-
Time Attending : <BR>
-
-
<SELECT NAME="service">
-
<OPTION VALUE="5:30">5:30</option>
-
<OPTION VALUE="8:30">8:30</option>
-
</SELECT>
-
-
<BR> <BR>
-
-
Anything else we should know : <BR>
-
-
<TEXTAREA NAME="message" cols="35" rows="4" wrap="virtual"></TEXTAREA>
-
-
<BR> <BR> <BR>
-
-
<INPUT TYPE="hidden" NAME="required" VALUE="email,realname,groupname,phone,tickets,service">
-
-
<INPUT name="Submit" TYPE="submit" VALUE="Submit">
-
<INPUT name="Reset" TYPE="reset" VALUE="Reset">
-
-
</FORM>
-
-
http://www.megaupload.com/?d=KL0BY3XA
That is the link to the formmail.pl version that i am using. Sorry bout the megaupload but it was the only way i could save using major amounts of lines.
Thanks in advance for anyone who is able to help me out on this.