globalize all variables not coming from a certain form...
| From: | Siim Einfeldt aka Itpunk | Date: | Sat, 19 May 2001 10:40:25 +0000 |
| Subject: | globalize all variables not coming from a certain form... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53513@lists.php.net to get a copy of this message | ||
Hi everybody,
Is it possible (and if it is, how) to globalize all the variables, that
come from some form, automatically?
For example:
function do_something(){
global $form;
if($form != "func"){
/* globalize all the variables that come from a form
called $form . How to do it? */
}
}
Yes, I could it manually - global $firstname,$lastname,$addres, etc
etc...but the function is being used by different scripts and I need to
globalize only these variables that come from that particular form ... and
all that 'automatically'.
Any ideas?
Thanks,
Siim Einfeldt