cloudseven
Programmer
hi there, I'd downloaded a shopping cart script and I'm just playing around with it. It works great and adds the appropriate items, I'm having trouble passing a querystring which holds a value to redirect to a particular page. Here is some code...Any help would be great, I'm scratching my head...I'm sure it's just a small thing...THANKS IN ADVANCE!!!
FORM TO GET VALUES
<form name='frmProducts' method='post' action="shoppingCart.asp?action=add&iNum=<%=r(0)%>&user=<%=Request.Cookies("user"
%>&cat=<%=request("cat"
%>">
***some codes***
</form>
all these querystrings I can get except for request("cat"
.
The other values are in sub procedures and other functions and they work. I'm not sure if that's why request("cat"
ain't working? I know it holds a value because I'd tested it with just a hyperlink instead within a form. On the shoppingCart.asp page I have this.
***********************
lots of code up here with subs and functions and intiation of a shoppingCart class
***********************
<html>
<head>
<title>The ASP Emporium - Shopping Cart Example</title>
</head>
<body bgcolor="#EEEEEE">
***EMBEDDED HTML FROM CODE ABOVE***
<%DisplayShoppingCart%>
<table width=100%>
<tr>
<td valign=right><a href="./products.asp?cat=<%=request("cat"
%>">Continue Shopping</a></td>
</tr>
</table>
<br>
<br>
</body>
</html>
FORM TO GET VALUES
<form name='frmProducts' method='post' action="shoppingCart.asp?action=add&iNum=<%=r(0)%>&user=<%=Request.Cookies("user"
***some codes***
</form>
all these querystrings I can get except for request("cat"
The other values are in sub procedures and other functions and they work. I'm not sure if that's why request("cat"
***********************
lots of code up here with subs and functions and intiation of a shoppingCart class
***********************
<html>
<head>
<title>The ASP Emporium - Shopping Cart Example</title>
</head>
<body bgcolor="#EEEEEE">
***EMBEDDED HTML FROM CODE ABOVE***
<%DisplayShoppingCart%>
<table width=100%>
<tr>
<td valign=right><a href="./products.asp?cat=<%=request("cat"
</tr>
</table>
<br>
<br>
</body>
</html>