You are here: Re: Problems with $_GET « PHP Programming Language « IT news, forums, messages
Re: Problems with $_GET

Posted by Richard Levasseur on 03/08/06 21:00

One rule of web development is you cannot rely on the GET/POST data at
all as the client can forge it very very easiy. You shoul do some data
checking and error handling to prevent this.

If you are trying to pass multiple values for the same parameter name,
append [] to them and they will come in as an array.
ie: ?asdf[]=foo&asdf[]=bar

You can try parse_url(), but that is probably what php uses to parse
$_GET anyways, so you'd have to write your own function to parse it and
take the first value and ignore the subsequent values.

 

Navigation:

[Reply to this 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

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