Hey all...I'm trying to create a page that ask students for:
Their name
E-mail Address
Company
and then I have a list of Check boxes with classes they may be interested in.
I followed the examples on the Dreamweaver MX files page given to me earlier, but I constantly get "cannot display page" errors on my .asp pages, or it asks me to save it to my local drive.
Any suggestions on what in the heck I'm doing wrong? I'm just trying to send this info to my work mailbox (Outlook) Thanks for all your help!!
my pages are:
"classes.asp". This is the main page with a form. the form has a submit button and the form itself has the action property set to POST at "classes_info.asp".
classes_info.asp is just code that is the following:
<% @language="VBSCRIPT" %>
<%
Dim myMail, myBody
myBody ="Name: "& request.form("name") & vbcrlf & "Company: " & request.form("company") & vbcrlf & "E-Mail: "& vbcrlf & request.form ("email") & vbcrlf & "MS Word: "& vbcrlf & request.form ("msword") & vbcrlf & "MS Access: "& vbcrlf & request.form ("msaccess") & vbcrlf & "MS Powerpoint: "& vbcrlf & request.form ("mspowerpoint") & vbcrlf & "MS Excel: "& vbcrlf & request.form ("msexcel") & vbcrlf & "msfrontpage: "& vbcrlf & request.form ("msfrontpage")
Set myMail = Server.CreateObject ("CDONTS.NewMail")
myMail.From = request.form("email")
myMail.To = "cmoore@nhrichmond.com"
myMail.Subject = "Class Information"
myMail.Body = myBody
myMail.Send
set myMail=nothing
Response.Redirect("classes_thanks.asp")
%>
classes_thanks.asp is just a simple thank you page.
Their name
E-mail Address
Company
and then I have a list of Check boxes with classes they may be interested in.
I followed the examples on the Dreamweaver MX files page given to me earlier, but I constantly get "cannot display page" errors on my .asp pages, or it asks me to save it to my local drive.
Any suggestions on what in the heck I'm doing wrong? I'm just trying to send this info to my work mailbox (Outlook) Thanks for all your help!!
my pages are:
"classes.asp". This is the main page with a form. the form has a submit button and the form itself has the action property set to POST at "classes_info.asp".
classes_info.asp is just code that is the following:
<% @language="VBSCRIPT" %>
<%
Dim myMail, myBody
myBody ="Name: "& request.form("name") & vbcrlf & "Company: " & request.form("company") & vbcrlf & "E-Mail: "& vbcrlf & request.form ("email") & vbcrlf & "MS Word: "& vbcrlf & request.form ("msword") & vbcrlf & "MS Access: "& vbcrlf & request.form ("msaccess") & vbcrlf & "MS Powerpoint: "& vbcrlf & request.form ("mspowerpoint") & vbcrlf & "MS Excel: "& vbcrlf & request.form ("msexcel") & vbcrlf & "msfrontpage: "& vbcrlf & request.form ("msfrontpage")
Set myMail = Server.CreateObject ("CDONTS.NewMail")
myMail.From = request.form("email")
myMail.To = "cmoore@nhrichmond.com"
myMail.Subject = "Class Information"
myMail.Body = myBody
myMail.Send
set myMail=nothing
Response.Redirect("classes_thanks.asp")
%>
classes_thanks.asp is just a simple thank you page.