Re: [PHP] variable for $_GET or $_POST

2002-05-14 Thread Philip Olson

see also: $_REQUEST, extract() and/or 
import_request_variables()

Regards,
Philip Olson

On 14 May 2002, Jeff Bearer wrote:

 Quick question if I'm programming with register globals off, and want to
 get a variable that is allowed to be set with either a GET or POST
 method, is there 1 variable that will contain the value?  Or do I have
 to find it like with something like this?
 
 if($_GET[test]) $test=$_GET[test];
 else $test=$_POST[test];
 
 Thanks
 
 
 -- 
 Jeff Bearer, RHCE
 Webmaster
 PittsburghLIVE.com
 2002 EPpy Award, Best Online U.S. Newspaper
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] variable for $_GET or $_POST

2002-05-14 Thread Jeff Bearer

$_REQUEST,

sorry didn't see it the first time.

On Tue, 2002-05-14 at 14:04, Jeff Bearer wrote:
 Quick question if I'm programming with register globals off, and want to
 get a variable that is allowed to be set with either a GET or POST
 method, is there 1 variable that will contain the value?  Or do I have
 to find it like with something like this?
 
 if($_GET[test]) $test=$_GET[test];
 else $test=$_POST[test];
 
 Thanks
 
 
 -- 
 Jeff Bearer, RHCE
 Webmaster
 PittsburghLIVE.com
 2002 EPpy Award, Best Online U.S. Newspaper
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php