I am having a world of problems with this can anyone please help. I don't know what I am doing wrong. Following the code is the error message I am getting. Here is the code I am using:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AMM | Unsubscribe </title>
</head>

<body>
<table width="65%" border="2" align="center" bordercolor="#003366">
  <tr>
    <td>
        <center>
            <a href="http://www.amm.org"><img src="Images/mailinglogo.gif" alt="AMM Logo" width="288" height="80" border="0"></a>
        </center>        </td>
  </tr>
  <tr>
    <td><font size="2" face="Verdana"><strong>By selecting this link you are requesting to stop receiving emails from the Association.</strong></font></td>
  </tr>
  <tr>
    <td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Member #</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%Request.QueryString["donor"].ToString().Substring(1,9)%></font></div>    </td>
  <td><%(Request.QueryString("donor").ToString().Substring(10,4))%></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><font face="Verdana"><font size="2"><strong>Would you like to continue receiving emails from us?</strong></font></font></td>
  </tr>
  <tr>
    <td>
		<form action="tytest.asp" method="post">
		<input name="donor" type="hidden" value="<%Request.QueryString("donor").ToString().Substring(1,9)%>">
			  <p>
	              <strong>
	              <input name="Subscribed" type="radio" value="y" checked />	    
	              <font size="2" face="Verdana, Arial, Helvetica, sans-serif">Yes, continue to send me emails.	    </font></strong></p>
	  <p>
	 
	      <strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
	      <input name="Subscribed" type="radio" value="n" />  
	      No, remove me from your email list. </font></strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font></p>
	  <p>
	  <center>    <input name="Submit" type="submit"  value="Submit" /></center>
	  </p>
		</form>	</td>
  </tr>
</table>
</body>
</html>

Here is the error message I am getting:

Member #
Microsoft VBScript runtime error '800a01a8'

Object required: 'Request'

/distribution/addorremovetest.asp, line 22

Any Help Please!

Is it because of the parentheses within the '<% %>' tags in this line?

<td><%(Request.QueryString("donor").ToString().Substring(10,4))%></td>

I could be wrong since i no longer program in asp but i think the code supposed to look like this:

<%=Request.QueryString["donor"].ToString().Substring(1,9)%>

From what i remember if u want to display something u have to write it out, u have to use "<%="

I definitely know that this

<input name="donor" type="hidden" value="<%Request.QueryString("donor").ToString().Substring(1,9)%>">

should be

<input name="donor" type="hidden"value='<%=Request.QueryString("donor").ToString().Substring(1,9)%>'>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.