<%@ LANGUAGE="VBSCRIPT" %>
<!--- This example illustrates the use of a "thank you" note after submitting a form --->
<TITLE>ASP Guestbook Thank You</TITLE>
Thanks for filling out our survey, <%=Request.form("yourname")%>.
<!-- The following area delineates and sends mail -->
' Set up variables to hold the text strings
' assign text to the variable
OriginatingEmail = Request.form("email")
DestinationEmail = "firstname.lastname@example.org"
Subject = "The Subject Line Goes Here"
' The body contains all the form data separated by semicolons
Body = "Name = " & Request.form("yourname") & "; Email Address = " & Request.form("email") & "; Answer = " & Request.form("answer")
' Send email via the SendMail utility...note that this is an add-on to Active Server Pages and needs to be installed separatelly on the server.
Set email = Server.CreateObject("MPS.SendMail")
retCode = email.SendMail(OriginatingEmail, DestinationEmail, Subject, Body)
' Posts if mail has been sent or not
IF NOT True = retCode THEN
Response.write("Failed to send form results to "&DestinationEmail&" due to "&Err.Description&".<P>")
Response.write("Your form Results have been sent.<P>")
' Posts answer depending on radio button choice
IF Request.form("answer") = "yes" THEN
Response.write("I like Active Server Pages Too!")
Response.write("I don't like Active Server Pages either!")
That looks more like an email form because it just submitsa the form via email. Stupid brinkster wont even let me do that with asp. Shouldn't a guest book add this code automatically to the thread or what is the deal with that. This is the thankyou page by the way. Oh and yea this asp.net is making me mad. I am getting a bunch of server errors and am using this debugger to figure out what the heck is wrong. This is tedious when you dont quite know what you are doing :mad: