Right, I'm setting up a contact form here: www.blastwave.org.uk/info
I have my default page with all the standard (and simple) Form Code on, then I have my second page, aci.asp (assort contact information) which is (as most reading this would know) basically where the info is processed and the email is sent off to me, here is my problem though:
<%
'receive the values sent from the form and assign them to variables...
'declare the variables that will receive the values
'note that request.form("name") will receive the value entered into the textfield
'called name, and so with email and message
Dim name,email,title,inquiry,NewMailObj,department,message
department=Request.Form("department")
name=request.form("name")
email=request.form("email")
title=request.form("title")
inquiry=request.form("inquiry")
'create the mail object and send the details
Set NewMailObj=Server.CreateObject("CDONTS.NewMail")
NewMailObj.From = "& email & _
NewMailObj.To = "webmaster@blastwave.org.uk"
NewMailObj.Subject = "New message sent.."
NewMailObj.Body = "the name you entered was " & name & _
"<br>the email was " & email & _
"<br>the message was " & message
'you need to add the following lines FOR the mail to be sent in HTML format
NewMailObj.BodyFormat = 0
NewMailObj.MailFormat = 0
NewMailObj.Send
Set NewMailObj = nothing
%>
This is the entire ASP in aci.asp, not to mention of course, the standard:
<% @ Language="VBscript" %>
<% Option Explicit %>
At the top of the page.
- But -
You see the bold/red text; that's what's stumped me. As I have been designing for over a year but I've never made a form like this; my forms have had the action="mailto:..." function and I had special software which decoded the stuff that was sent to my email from jumbled code to straight up "Name: Bob Email: bob@hotmail" etc. etc.
I'm sidetracking here..
Anyhoo, what is the exact code that goes in there? I tried making it the variable for email, as you can see, tried putting quotes around it etc. but realised - foolishly so - that you can't even out quotes as there is one at the front of the "&email&_ by default.
So yeah, what does one do?
(Before you ask: I am very much a newcomer to ASP, been working with HTML/CSS all the while, but I need to up the standards a bit and ASP seems the way to go. I'm getting there ..so slowly..)