Re: Number Sign in String Variables

From: Date: Sat, 18 Jan 2003 23:29:57 +0000
Subject: Re: Number Sign in String Variables
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-132133@lists.php.net to get a copy of this message
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" <brad@robinsontech.com> wrote in message 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 > >

« previous php.general (#132133) next »