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 permission to access
/carmae/add_to_cart.php?item_num=STT32700&quantity=1&sale_price=52.78&unit=B
X&short_desc=ENVELOPE,100%COT 24#,GY&wholesaler=US&cost=37.700 on this
server.

I've never seen anything like this before.

Suggestions?

"Brad Pauly" <[EMAIL PROTECTED]> wrote in message
1042912825.15063.33.camel@earth">news:1042912825.15063.33.camel@earth...
> > For example, this URL:
> >
> > add_to_cart.php?item_num=SOU3432410&quantity=1&sale_price=24.92&unit=BX
> > &short_desc=ENVELOPE,25%COT 24#,IY&wholesaler=US&cost=18.690
> >
> > gets cut off at the # sign, so $wholesaler and $cost come out empty.
> >
> > Any suggestions to get around this?
>
> You could use urlencode() and urldecode().
>
> http://www.php.net/manual/en/function.urlencode.php
> http://www.php.net/manual/en/function.urldecode.php
>
> Brad
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to