Form Mail CGI Script

Back to CGI Page Advanced

Below is the sample code for the CGI form mailer, copy this to a file and replace the red highlighted text with your e-mail address. You may custom configure the code to your liking, just make sure that the variable names "recipient", and "subject" are unchanged. Upload the file to your website when finished.


<P><FORM ACTION="http://cgi.fea.net/cgi-bin/formmail.pl" METHOD="POST" ID="Comm">
<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="youremailaddress">
<INPUT TYPE="HIDDEN" NAME="subject" VALUE="E-Mail Reply from your home page">

<P>
Your Name:<INPUT TYPE=text NAME="realname" SIZE=30 MAXLENGTH=30>
<BR>
Phone:<INPUT TYPE=text NAME=yourphone MAXLENGTH=20>
<BR>
Address:<INPUT TYPE=text NAME=youraddr SIZE=40 MAXLENGTH=40>
<BR>
City:<INPUT TYPE=text NAME=yourcity SIZE=30 MAXLENGTH=30>
<BR>
State:<INPUT TYPE=text NAME=yourstate SIZE=2 MAXLENGTH=2>
Zip code:<INPUT TYPE=text NAME=yourzip SIZE=10 MAXLENGTH=10>
<BR>
E-Mail Addr:<INPUT TYPE=text NAME="email" SIZE=40 MAXLENGTH=40>

<P><TEXTAREA NAME="comments" COLS="70" ROWS="10" WRAP="WRAP"> </TEXTAREA>
<CENTER>
<INPUT TYPE="SUBMIT" VALUE="Submit Comment"><INPUT TYPE="RESET" VALUE="Cancel Comment">
</CENTER>
</FORM>