This is My test form Page
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<form name="form1" method="post" action="housing.asp">
<input name="Name" type="text" id="suck me">
<input name="E-Mail" type="text" id="eat me">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
This is my ASP text generated by a website for me. Where in housing.asp does it go?
In
other words, is this all that goes in the file (does not work) or does it go in the
Head
Section or the body section. I've had no luck and I think I must not know about some
fundamental asp concept.
'************************
'****************Header
'************************
body = "Form Field Values" & vbCrLf
'************************
'***Collect the values
'***in the form
'************************
For Each obj in request.form
body = body & obj & " : " & request.form(obj) & vbCrLf
Next
body = body & "testing 123"
'************************
'***Sends the Email
'************************
Dim objSendMail
Set objSendMail = Server.CreateObject("CDONTS.NewMail")
objSendMail.To ="[EMAIL PROTECTED]"
objSendMail.From ="Shesha Marvin"
objSendMail.Subject = "Housing Request"
objSendMail.Body = body
objSendMail.Send
Set objCDOMail = Nothing
response.redirect "http://www.oclindyexchange.com"
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/