|
Posted by J.O. Aho on 12/08/07 11:45
FFMG wrote:
> Hi,
>
> I want to use a separator in some queries in the URL
>
> http://www.example.com/?k=1,2,3
>
> It all works fine but the ',' is converted to the html '%2C', (I use
> php URLencode, http://php.net/urlencode).
The function do convert the string in the same way as it would be if it had
been posted as application/x-www-form-urlencoded.
The %XX don't change how the data is handled, just looks differently and works
sometimes a lot better than not urlencode the string.
> What would be a better way of listing items in the URL?
Use an array instead of one variable.
--
//Aho
[Back to original message]
|