note 30257 added to language.variables.external
| From: | mail at paulodeon dot com | Date: | Wed, 12 Mar 2003 11:42:50 +0000 |
| Subject: | note 30257 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45147@lists.php.net to get a copy of this message | ||
If you have form data that could be coming in via either GET or POST and register_globals is off (as
it should be) use the empty() function to find out where the data is coming from, as in the
following example
if(empty($_GET)) {
$clientfilter = $_POST['clientfilter'];
$branchfilter = $_POST['branchfilter'];
}
if(empty($_POST)) {
$clientfilter = $_GET['clientfilter'];
$branchfilter = $_GET['branchfilter'];
}
Big thank you to all the people posting helpful comments on these boards, I dont know what i'd
do without you. <a href="www.paulodeon.com">www.paulodeon.com</a>
--
http://www.php.net/manual/en/language.variables.external.php
http://master.php.net/manage/user-notes.php?action=edit+30257
http://master.php.net/manage/user-notes.php?action=delete+30257
http://master.php.net/manage/user-notes.php?action=reject+30257