Reply to mixing $_POST and $_GET vars

Your name:

Reply:


Posted by "bruce" on 09/10/05 02:46

hi..

quick question.. a basic link <a ref ="foo.php?a=1">blah</a> allows you to
process the vars in foo.php using $_GET, easy/basic enough. however, if i
have a form from cat.php that does a 'post' of the form information/input to
the foo.php, i'm then going to have to either change the form to do a 'get'
or else i'm going to have to do both a $_GET, and a $_POST within foo.php to
access the vars from the pages that are interfacing with foo.php.

is there an easier/cleaner/better approach??

or do i really need/wind up doing something like

if ($_GET['foo'])...

if ($_POST['apple'])...

and just have a mix of both methods within the code...

thanks

-bruce
bedouglas@earthlink.net

[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

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