Re: accessing $HTTP_POST_VARS in user-defined function

From: Date: Tue, 06 Aug 2002 20:51:51 +0000
Subject: Re: accessing $HTTP_POST_VARS in user-defined function
Groups: php.db 
Request: Send a blank email to php-db+get-21020@lists.php.net to get a copy of this message
isn't $_POST super global? Just like $_SESSION and $_COOKIE. i think you can just use these in your functions. I have many functions that use $_SESSION, without passing it. jeff Rob Day <rday@tsl.stat To: "'php-db@lists.php.net'" <php-db@lists.php.net> e.tx.us> cc: Subject: [PHP-DB] accessing $HTTP_POST_VARS in user-defined function 08/06/2002 04:48 PM I'm trying to use $HTTP_POST_VARS from within a user-defined function. Currently I'm just passing the array to the function like so: MyFunction($HTTP_POST_VARS); function MyFunction($VARS) { blah, blah, blah.... } This doesn't seem like the best way to me. I imagine that this could slow things down - especially when I'm passing that array to several functions. Is there a way to access them directly from the function without passing the array? Something else maybe? Thanks. -Rob <rday@tsl.state.tx.us> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#21020) next »