On Saturday, April 13, 2002, at 01:37  PM, Paul Roberts wrote:

> Is there a quick way to set all variables as global so that they are 
> avalible to a function, i'm doing an eval inside, so i need all the 
> submitted variables to be avalible, or do i have to decalre them 
> individualy.

If you refer to a POST or GET (or COOKIE or SESSION or SERVER) variable 
as $_POST['variablename'] or $_GET['variablename'], then it will 
automatically be global.

In PHP 4.1.x or later


Erik




----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


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

Reply via email to