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

Need webpage Form Help

Status
Not open for further replies.

alzie2

Technical User
Feb 4, 2002
2
US
I've created a "mailto:" form that submits correctly and I receive the data from the submitted form. But I've got two problems.
1. I've created a "thanks for your submission" page on my site but I can't seem to get my form to bring up the "thanks" page after the submit button is pushed and the form data is emailed.
2. Also, when the email arrives the subject line says "posted on Internet Explorer" instead of what I want it to say. Can anyone help with the coding and where it is placed? I'm using FrontPage 2000 on Windows98 SE to write the form but I'm not using the FrontPage protocols. Any help will be greatly appreciated.
 
Something like this maybe?

Code:
<FORM ACTION=&quot;[URL unfurl="true"]http://www.vermontel.com/cgi-bin/mail?smah&quot;[/URL] METHOD=&quot;POST&quot;>
<PRE>
    First name: <INPUT NAME=&quot;first&quot; TYPE=&quot;text&quot;>
     Last name: <INPUT TYPE=&quot;text&quot; NAME=&quot;TextField&quot;>
E-mail address: <INPUT TYPE=&quot;text&quot; NAME=&quot;email&quot; VALUE=&quot;&quot;>
   City / Town: <INPUT TYPE=&quot;text&quot; NAME=&quot;city&quot;>
         State: <INPUT TYPE=&quot;text&quot; NAME=&quot;state&quot;>
Cmments:        <TEXTAREA NAME=&quot;coments&quot; ROWS=&quot;4&quot; COLS=&quot;40&quot;></TEXTAREA>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;subject&quot; VALUE=&quot;Guestbook mail&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;next-url&quot; VALUE=&quot;[URL unfurl="true"]http://www.vermontel.com/~smah/thanks.htm&quot;>[/URL]
<INPUT TYPE=&quot;SUBMIT&quot; VALUE=&quot;Sign in&quot; NAME=&quot;send&quot;><INPUT TYPE=&quot;RESET&quot; NAME=&quot;Clear Info&quot; VALUE=&quot;Clear Info&quot;></PRE>
</FORM>
 
same problem here, only when i click on submit an email page comes up to write the email to the address i specified up top. Do i need to make a CGI file or something to use the code you just posted??
 
My isp has the referenced cgi script available for users. I posted that code hoping that something there might help - like &quot;next-url&quot;. But, after I tried it with FP, I see that FP does it a little differently. I tried to create a form like this with FP, but couldn't get it to work right either but that may be because my isp isn't running the front page extensions. Sorrry I couldn't help.
 
Hi Smah,
Thanks for your help attempt. I don't think that the problem is FrontPage because I used Homesite to enter the following code (modified slightly from your original):
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<html>
<head>
<title>Untitled</title>
</head>

<body>
<FORM ACTION=&quot;mailto:aldago@earthlink.net? subject=physubmit&quot; METHOD=&quot;POST&quot;>
<PRE>
First name: <INPUT NAME=&quot;first&quot; TYPE=&quot;text&quot;>
Last name: <INPUT TYPE=&quot;text&quot; NAME=&quot;TextField&quot;>
E-mail address: <INPUT TYPE=&quot;text&quot; NAME=&quot;email&quot; VALUE=&quot;&quot;>
City / Town: <INPUT TYPE=&quot;text&quot; NAME=&quot;city&quot;>
State: <INPUT TYPE=&quot;text&quot; NAME=&quot;state&quot;>
Cmments: <TEXTAREA NAME=&quot;coments&quot; ROWS=&quot;4&quot; COLS=&quot;40&quot;></TEXTAREA>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;redirect&quot; VALUE=&quot;<INPUT TYPE=&quot;SUBMIT&quot; VALUE=&quot;Submit&quot; NAME=&quot;send&quot;><INPUT TYPE=&quot;RESET&quot; NAME=&quot;Clear Info&quot; VALUE=&quot;Clear Info&quot;></PRE>
</FORM>



</body>
</html>

I cut out the guestbook because I didn't care to receive data just check if the page was redirected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top