Reply to Re: [PHP] $_GET & $_POST simultaneously

Your name:

Reply:


Posted by Greg Donald on 10/05/40 11:05

On Tue, 11 Jan 2005 10:26:05 -0800 (PST), Richard Lynch <ceo@l-i-e.com> wrote:
> There are many scripts I write which provide results for either GET or
> POST data interchangably, so that links or forms can be used in the other
> pages to fit in with their look/feel.

When I need to come in both ways, I just do stuff like:

$id = isset( $_POST[ 'id' ] ) ? $_POST[ 'id' ] : 0;
$id = isset( $_GET[ 'id' ] ) ? $_GET[ 'id' ] : $id;


--
Greg Donald
Zend Certified Engineer
http://destiney.com/

[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

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