<.asp>
<head>
<title>ADS Graphics Firm Email Form</title>
<meta http-equiv="Content-Type" content="text.asp; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
Dim strFrom, strAddress, strPhone, strContact, strPrjectbudget, strCurrent, strPages, strMState, strProjecttype, strMDescription
strFrom = Request.Querystring("contactname")
strAddress = Request.Querystring("emailaddress")
strPhone = Request.Querystring("phonenumber")
strContact = Request.Querystring("timecontact")
strProjectbudget = Request.Querystring("projectbudget")
strCurrent = Request.Querystring("currentsiteavailable")
strPages = Request.Querystring("pagesforsite")
strMState = Request.Querystring("location")
strProjecttype = Request.Querystring("projecttype")
strMDescription = Request.Querystring("projectdescription")
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.to="
invalid@tester.com"
MyMail.Subject = strProjecttype
MyMail.from = "invalid@tester.com"
strMsg = "Contact Name: " & strFrom & vbCrLf & "Email Address: " & strAddress & vbCrLf & "Contact Number: " & strPhone & vbCrLf & "Contact Time: " & strContact & vbCrLf & "Project Budget: " & strProjectbudget & vbCrLf & "Current Site: " & strCurrent & vbCrLf & "Estimated Pages: " & strPages & vbCrLf & "Location: " & strMState & vbCrLf & "Project Type: " & strProjecttype & vbCrLf & "Project description: " & strMDescription & vbCrLf
MyMail.Body = strMsg
MyMail.BodyFormat = 0
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Send
Set MyMail=nothing
%>
Your email has been sent.
<script language="Javascript">
alert ("Your email has been delivered successfully, Thank you.")
location = "Contact.htm"
</script>
</body>
%>
/////in the html form i have the NAME of the text box as "emailaddress"
I was under the impression that the Request.Querystring was a command that took the string from the html form via a request.
Not sure, obviously though.
I'm just getting into the "form" world.