No CGI please advise on HTML

liunx

Guest
I am at a loss and hope you can help. <br />
When building a "FORM" I cannot understand why when I click the "submit" button a warning box shows... I click on okay... and Microsoft Outlook Express comes up with my email address. This does not make sense. No information is transferred through by email to me. According to my investigation of other websites I see CGI script used but I have heard warnings against using this method. Should I not be able to click the submit button and have the information automatically transferred to my email while using FORM METHOD="post" ACTION=mailto:[email protected] ? What am I doing wrong? I have copied your HTML exactly, plugging in, of course, my information. <br />
<br />
Below is my page:<br />
<br />
<br />
<HTML> <HEAD> <TITLE> Mailing List Submission Form for M. KELLY COMPANY</TITLE><br />
</HEAD><br />
<br />
<BODY bgcolor="#EE82EE"><br />
<FONT size=4 color="#191970">If you would like to be on our mailing list please fill out the <br />
form below and click the submit button.</FONT><br />
<br />
<FORM METHOD="POST" ACTION="mailto:[email protected]"><br />
<INPUT TYPE="text" NAME="name" SIZE="30"> <br>Name<br />
</FORM><br />
<FORM METHOD="POST" ACTION="mailto:[email protected]"><br />
<INPUT TYPE="text" NAME="address" SIZE="50"><br>Address<br />
</FORM><br />
<FORM METHOD="POST" ACTION="mailto:[email protected]"><br />
<INPUT TYPE="TEXT" NAME="city"><br>City<br />
</FORM><br />
<FORM METHOD="POST" ACTION="mailto:[email protected]"><br />
<INPUT TYPE="text" NAME="state"><br>State<br />
</FORM><br />
<FORM METHOD=POST" ACTION="mailto:[email protected]"><br />
<INPUT TYPE="TEXT" NAME="zip"><br>Zip<br />
<INPUT TYPE="SUBMIT" VALUE="SUBMIT"><INPUT TYPE="RESET" VALUE="RESET"><br />
</FORM><br />
<br />
<br />
<br />
<FORM METHOD="POST" ACTION="mailto:[email protected]"><br />
<TEXTAREA NAME="comment" ROWS=6 COLS=40> </TEXTAREA> <br> Comments<br />
</FORM><br />
<font size=3> Please tell us how you heard about us. Click below.<br><br />
<FORM METHOD="POST" ACTION="mailto:[email protected]"><br />
<INPUT TYPE="radio" NAME="referred" VALUE"search">SEARCH <p><br />
<INPUT TYPE="radio" NAME="referred" VALUE"friend">FRIEND<p><br />
<INPUT TYPE="radio" NAME="referred" VALUE"othersite">OTHER SITE<p><br />
<br />
</FORM><br />
<br />
</HTML><br />
</BODY><!--content-->Um, in short, what you are doing wrong is LOTS. to begin with, this should be all one form, not what you have above. try something like this. (tested and works)<br />
<br />
<FORM name="mailer" METHOD="POST" ACTION="mailto:[email protected]" enctype="text/plain"> <br />
Name: <INPUT TYPE="text" NAME="name" SIZE="30"><br> <br />
Address: <INPUT TYPE="text" NAME="address" SIZE="50"><br> <br />
City: <INPUT TYPE="TEXT" NAME="city"><br> <br />
State: <INPUT TYPE="text" NAME="state"><br> <br />
Zip: <INPUT TYPE="TEXT" NAME="zip"><br> <br />
Comments<br><br />
<TEXTAREA NAME="comment" ROWS=6 COLS=40> </TEXTAREA><br> <br />
<font size=3> Please tell us how you heard about us. Click below.<br> <br />
<INPUT TYPE="radio" NAME="referred" VALUE="search">SEARCH <br />
<INPUT TYPE="radio" NAME="referred" VALUE="friend">FRIEND <br />
<INPUT TYPE="radio" NAME="referred" VALUE="othersite">OTHER SITE<br> <br />
<INPUT TYPE="SUBMIT" VALUE="SUBMIT"> <INPUT TYPE="RESET" VALUE="RESET"> <br />
</FORM><br />
<br />
good luck.<!--content-->Hi Kelly,<br />
<br />
Your form code is no good. You can only use one beginning form tag and one end tag per form. Use this code. It will display nicely on the page and send the data in a readable format and still uses ACTION=MAILTO so no server side script is necessary.<br />
<br />
<HTML> <HEAD> <TITLE> Mailing List Submission Form for M. KELLY COMPANY</TITLE> <br />
</HEAD> <br />
<br />
<BODY bgcolor="#EE82EE"> <br />
<FONT size=4 color="#191970">If you would like to be on our mailing list please fill out the <br />
form below and click the submit button.</FONT> <br />
<FORM METHOD="POST" ACTION="mailto:[email protected]" onSubmit="return mailMe( this.form )" enctype="text/plain"><br />
<table border=0 cellpadding=2 cellspacing=0><br />
<tr><td>Name:</td><td><INPUT TYPE="text" NAME="name" SIZE="30"></td></tr><br />
<tr><td>Street Address:</td><td> <INPUT TYPE="text" NAME="address" SIZE="30"></td></tr><br />
<tr><td>City:</td><td> <INPUT TYPE="TEXT" NAME="city" SIZE="30"></td></tr> <br />
<tr><td>State:</td><td> <INPUT TYPE="text" NAME="state" SIZE="30"></td></tr><br />
<tr><td>Zip:</td><td> <INPUT TYPE="TEXT" NAME="zip" SIZE="30"></td></tr> <br />
<tr><td colspan=2>Comments :<br><br />
<TEXTAREA NAME="comment" ROWS=6 COLS=40></TEXTAREA></td></tr> <br />
<tr><td colspan=2><font size=3> Please tell us how you heard about us. Click below.<br> <br />
<INPUT TYPE="radio" NAME="referred" VALUE="search">SEARCH <INPUT TYPE="radio" NAME="referred" VALUE="friend">FRIEND<br />
<INPUT TYPE="radio" NAME="referred" VALUE="othersite">OTHER SITE<p> <br />
<INPUT TYPE="SUBMIT" VALUE="SUBMIT"> <INPUT TYPE="RESET" VALUE="RESET"><br />
</td><br />
</tr><br />
</table><br />
</FORM> <br />
</HTML> <br />
</BODY><br />
<br />
<br />
Regards,<br />
Kevin<!--content-->Thanks Kevin ... I followed you here from HTML GOODIES.. I tried to email but was unable to. Glad you and Ian were here to help me.<!--content-->
 
Back
Top