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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto: form question

Status
Not open for further replies.

markasey

Technical User
Dec 19, 2000
3
US
I am creating a small "mailto:" form and I have it working fine. The user fills out all the fields, clicks submit and I get the information in my email. However, after the user clicks submit, it looks like nothing has happened. Can I have it forward to a new URL or file so the user knows his info has been submitted? This is the code I've used:

<head>
<title></title>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
</head>

<body bgcolor=&quot;#FFFFFF&quot;>

<font size=&quot;+3&quot;>
<form enctype=&quot;text/plain&quot; method=&quot;POST&quot; action=&quot;mailto:marklegault@ohgolly.net&quot; name=&quot;mainform&quot;>
&amp;nbsp;
<table border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; width=&quot;73%&quot; height=&quot;210&quot;>
<tr>
<td width=&quot;30%&quot; height=&quot;28&quot;></td>
<td width=&quot;70%&quot; height=&quot;28&quot;></td>
</tr>
</font>
<tr>
<td width=&quot;100%&quot; height=&quot;38&quot; colspan=&quot;2&quot;><font face=&quot;Arial&quot; size=&quot;3&quot;>Let us
hear your story of success in 300 words or less and you may end-up on the
&amp;quot;Recognition&amp;quot; page of Hot News!</font></td>
</tr>
<font size=&quot;+3&quot;>
<tr>
<td width=&quot;30%&quot; height=&quot;1&quot;></td>
<td width=&quot;70%&quot; height=&quot;1&quot;></td>
</tr>
</font>
<tr>
<td width=&quot;30%&quot; height=&quot;38&quot;><font face=&quot;Arial&quot; size=&quot;3&quot;><b>Name:</b></font></td>
<font size=&quot;+3&quot;>
<td width=&quot;70%&quot; height=&quot;38&quot;><font size=&quot;+3&quot;><input name=&quot;NAME:&quot; type=&quot;TEXT&quot; size=&quot;30,1&quot; maxlength=&quot;30&quot;></font></td>
</tr>
</font>
<tr>
<td width=&quot;30%&quot; height=&quot;38&quot;><font face=&quot;Arial&quot; size=&quot;3&quot;><b>Business Name:</b></font></td>
<font size=&quot;+3&quot;>
<td width=&quot;70%&quot; height=&quot;38&quot;><font size=&quot;+3&quot;><input name=&quot;BUSINESS NAME:&quot; type=&quot;text&quot; size=&quot;30,1&quot; maxlength=&quot;30&quot;></font></td>
</tr>
</font>
<tr>
<td width=&quot;30%&quot; height=&quot;26&quot;><font face=&quot;Arial&quot; size=&quot;3&quot;><b>Contact Phone:</b></font></td>
<font size=&quot;+3&quot;>
<td width=&quot;70%&quot; height=&quot;26&quot;><font size=&quot;+3&quot;><input size=&quot;30,1&quot; maxlength=&quot;30&quot; name=&quot;CONTACT PHONE:&quot; type=&quot;text&quot;></font></td>
</tr>
</font>
<tr>
<td width=&quot;30%&quot; height=&quot;16&quot;><font face=&quot;Arial&quot; size=&quot;3&quot;><b>Website Address:</b></font></td>
<font size=&quot;+3&quot;>
<td width=&quot;70%&quot; height=&quot;16&quot;><font size=&quot;+3&quot;><input size=&quot;30,1&quot; maxlength=&quot;30&quot; name=&quot;WEBSITE ADDRESS:&quot; type=&quot;text&quot;></font></td>
</tr>
</table>
</font><font face=&quot;Arial&quot; size=&quot;2&quot;><br>
</font><font face=&quot;Arial&quot; size=&quot;3&quot;><b>Your Story:</b></font><font size=&quot;+3&quot;>
<dl>
<p><textarea name=&quot;YOUR STORY:&quot; rows=&quot;12&quot; cols=&quot;55&quot;></textarea>
</dl>
<p><input type=&quot;button&quot; onclick=&quot;mainform.submit();&quot; value=&quot;Accept &amp;amp; Submit&quot;>
<input type=&quot;button&quot; onclick=&quot;window.close();&quot; value=&quot;DECLINE&quot;></p>
</form>
</font>

</body>


Thanks very much.

~Mark
 
try changing

<p><input type=&quot;button&quot; onclick=&quot;mainform.submit();&quot;

to

<p><input type=&quot;button&quot; onclick=&quot;mainform.submit(); window.location='whatever.html';&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top