I have signed up with a web hosting company that will not give me any help with getting my contact form to work.
I have acquired an .asp script from the hosting companies site and have adjusted it to were it works. My problem is that after the user hits the submit button, I want to take the viewer back to one of my html pages (home page)but I have no idea how to accomplish this. Can someone show me were and what to place in the below script that will take the user back to an html page after they have hit the submit button. I would be very gratefull.
'-----EDIT THE MAILING DETAILS IN THIS SECTION-----
dim fromName, fromAddress, recipientName, recipientAddress, subject, body, sentTo
fromName = Request.Form("Name")
fromAddress = Request.Form("email")
recipientName = "CLICK BROWSERS BACK BUTTON TO CONTINUE"
subject = "Website Contact Form"
body = Request.Form("message")
'-----YOU DO NOT NEED TO EDIT BELOW THIS LINE-----
sentTo = "NOBODY"
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = fromName
Mailer.FromAddress = fromAddress
Mailer.RemoteHost = "mrelay.perfora.net"
if Mailer.AddRecipient (recipientName, recipientAddress) then
sentTo=recipientName & " (" & recipientAddress & ")"
Mailer.Subject = subject
Mailer.BodyText = body
if Mailer.SendMail then
Response.Write "YOUR MESSAGE HAS BEEN SENT: <b>" & sentTo & "</b>"
Response.Write "YOU MUST ENTER YOUR EMAIL ADDRESS. PRESS BACK BUTTON. Error was " & Mailer.Response
HTML CONTACT FORM:
<form method="post" action="http://shepard.com/sendmail2.asp ">
<p align=center>Your Name:<input type="text"size="35"name="Name"></p>
<p align=center>Your E-Mail:<input type="text"size="35"name="email"></p>
<p align=center>Your Message:<br/>
<p align=center><input type="submit" /></p>