All I'm doing is making a hyperlink that sends the selected item from the
catalog to the add to shopping cart script. The code now looks like this...
$value = rawurlencode("add_to_cart.php?item_num=" . $item_num .
"&quantity=1&sale_price=" . $our_price .
"&unit=" . $unit .
"&short_d
OK. I urlencoded the URL and now the URL passes correctly...
add_to_cart.php%3Fitem_num%3DSTT32700%26quantity%3D1%26sale_price%3D52.78%26
unit%3DBX%26short_desc%3DENVELOPE%2C100%25COT%2024%23%2CGY%26wholesaler%3DUS
%26cost%3D37.700
... but I get the following error:
Forbidden
You don't have per
OK. I found the problem, and it isn't PHP or MySQL related. It's an HTML
problem. I'm passing the string from one script to another, and the # sign
is screwing up the URL.
For example, this URL:
add_to_cart.php?item_num=SOU3432410&quantity=1&sale_price=24.92&unit=BX
&short_desc=ENVELOPE,25%COT
3 matches
Mail list logo