Reply to Re: Is ',' bad in the url?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация