cdp103188
06-05-2007, 03:15 PM
Hello, my name is Cameron Peebles, i'm 18 and just graduated high school. I took C++, java, and Visual Basic (sophomore year, i have forgotten most of it) and am now employed at Hunting Sports Plus and was hired to take care of most of their internet needs, however, and as they know, i have never made a website before and right now have take some tutorials for html and i know the basics, but nothing more. I am very inexperianced and am trying to make an ASP form work, which i really know nothing about, now to the reason i made this thread; I have written some code for a very simple asp form that is supposed to gather the surfers name and email address, however i get the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Request.Input_Form'
/request.asp, line 2
here is the full code:
<%
if Request.Input_Form("isSubmitted") = "yes" then
Dim fname, email
Dim objCDO
fname = Request.Input_Form("Name")
email = Request.Input_Form("Email")
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = email
objCDO.To = "cameron@huntingsportsplus.com"
objCDO.Cc = "kit@huntingsportsplus.net"
objCDO.Bcc = ""
objCDO.Subject = "AWA Request Info Form Submission"
objCDO.Body = "Name: " & fname & "\n" & "Email: " & email
objCDO.BodyFormat = 1
objCDO.MailFormat = 1
objCDO.Send
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AWA - American Wildlife Association</title>
<meta name="Description" content=
"American wildlife association is a collection of hunting clubs that lease private land available to it's members for hunting fishing and camping." />
<meta name="Author" content="cameron@huntingsportsplus.com" />
</head>
<body background="files/BKG.jpg" bgproperties="fixed" link=
"#FFFFFF" vlink="#CCFF66" alink="#CCFF00">
<table border="1" width="850" bgcolor="#000000" cellpadding="20" align="center">
<tr>
<td>
<table border="0" width="800" cellpadding="5"
bgcolor="#FFFFFF" align="center">
<tr>
<td valign="middle" align="center" width="25%"><img border=
"0" src="files/Head2.jpg" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" /><br /><br />
<img border="0" src="files/Head3.jpg" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" />
</td>
<td valign="middle" align="center" width="25%"><img border=
"0" src="files/Head1.jpg" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" /></td>
<td valign="top" align="center" width="25%">
<img border="0" src="files/AWA.gif" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" />
<h5><b>Private Land Nationwide for<br />
Hunting, Fishing and Camping.</b></h5>
</td>
</tr>
</table>
<table border="0" width="800" cellpadding="5"
bgcolor="#006699" align="center">
<tr>
<td width="33%" valign="top">
<!-- Insert Anything Here -->
</td>
<td width="33%" valign="top">
<p align="center">AWA Club Video<br />
<a href="files/vid2.wmv">Broadband</a> | <a href=
"files/vid2dialup.wmv">Dial Up</a></p>
</td>
<td width="33%" valign="top">
<!-- Insert Anything Here -->
</td>
</tr>
</table>
<table border="0" width="800" cellpadding="5"
bgcolor="#009933" align="center">
<tr>
<td width="100%" valign="top">
<center>
<p>Please Fill Out the Form to receive more information about AWA.</p>
</center>
<table border="1" cellpadding="5" align="center">
<tr>
<form action="request.asp" method="post" name="Input_Form">
<td align="right">
Full Name:
</td>
<td align="left">
<input type="text" size="30" maxlength="50" name="Name">
</td>
</tr>
<tr>
<td align="right">
Email Address:
</td>
<td align="left">
<input type="text" size="30" maxlength="50" name="Email">
</td>
</tr>
<tr>
<td colspan=2 align="center" >
<input type="hidden" name="isSubmitted" value="yes">
<input type="submit" value="Submit Form">
</td>
</tr>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ** file created on 5/15/2007 3:00:21 PM ** -->
<!-- ** file created by Matrix Y2K - Website Studio 2005 - visit us online @ http://www.crystalfibers.com -->
</body>
</html>
Any help would be very much appreciated.
-Cameron
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Request.Input_Form'
/request.asp, line 2
here is the full code:
<%
if Request.Input_Form("isSubmitted") = "yes" then
Dim fname, email
Dim objCDO
fname = Request.Input_Form("Name")
email = Request.Input_Form("Email")
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = email
objCDO.To = "cameron@huntingsportsplus.com"
objCDO.Cc = "kit@huntingsportsplus.net"
objCDO.Bcc = ""
objCDO.Subject = "AWA Request Info Form Submission"
objCDO.Body = "Name: " & fname & "\n" & "Email: " & email
objCDO.BodyFormat = 1
objCDO.MailFormat = 1
objCDO.Send
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AWA - American Wildlife Association</title>
<meta name="Description" content=
"American wildlife association is a collection of hunting clubs that lease private land available to it's members for hunting fishing and camping." />
<meta name="Author" content="cameron@huntingsportsplus.com" />
</head>
<body background="files/BKG.jpg" bgproperties="fixed" link=
"#FFFFFF" vlink="#CCFF66" alink="#CCFF00">
<table border="1" width="850" bgcolor="#000000" cellpadding="20" align="center">
<tr>
<td>
<table border="0" width="800" cellpadding="5"
bgcolor="#FFFFFF" align="center">
<tr>
<td valign="middle" align="center" width="25%"><img border=
"0" src="files/Head2.jpg" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" /><br /><br />
<img border="0" src="files/Head3.jpg" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" />
</td>
<td valign="middle" align="center" width="25%"><img border=
"0" src="files/Head1.jpg" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" /></td>
<td valign="top" align="center" width="25%">
<img border="0" src="files/AWA.gif" alt=
"AWA - Hunt, Fish and Camp on Private Land - Nation Wide" />
<h5><b>Private Land Nationwide for<br />
Hunting, Fishing and Camping.</b></h5>
</td>
</tr>
</table>
<table border="0" width="800" cellpadding="5"
bgcolor="#006699" align="center">
<tr>
<td width="33%" valign="top">
<!-- Insert Anything Here -->
</td>
<td width="33%" valign="top">
<p align="center">AWA Club Video<br />
<a href="files/vid2.wmv">Broadband</a> | <a href=
"files/vid2dialup.wmv">Dial Up</a></p>
</td>
<td width="33%" valign="top">
<!-- Insert Anything Here -->
</td>
</tr>
</table>
<table border="0" width="800" cellpadding="5"
bgcolor="#009933" align="center">
<tr>
<td width="100%" valign="top">
<center>
<p>Please Fill Out the Form to receive more information about AWA.</p>
</center>
<table border="1" cellpadding="5" align="center">
<tr>
<form action="request.asp" method="post" name="Input_Form">
<td align="right">
Full Name:
</td>
<td align="left">
<input type="text" size="30" maxlength="50" name="Name">
</td>
</tr>
<tr>
<td align="right">
Email Address:
</td>
<td align="left">
<input type="text" size="30" maxlength="50" name="Email">
</td>
</tr>
<tr>
<td colspan=2 align="center" >
<input type="hidden" name="isSubmitted" value="yes">
<input type="submit" value="Submit Form">
</td>
</tr>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ** file created on 5/15/2007 3:00:21 PM ** -->
<!-- ** file created by Matrix Y2K - Website Studio 2005 - visit us online @ http://www.crystalfibers.com -->
</body>
</html>
Any help would be very much appreciated.
-Cameron