Re: Number Sign in String Variables
| From: | Brad Pauly | Date: | Sat, 18 Jan 2003 18:00:25 +0000 |
| Subject: | Re: Number Sign in String Variables | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132112@lists.php.net to get a copy of this message | ||
> 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