Re: Variable variables
| From: | Marek Kilimajer | Date: | Sat, 28 Aug 2004 09:48:05 +0000 |
| Subject: | Re: Variable variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194993@lists.php.net to get a copy of this message | ||
JanBro wrote:
Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the manual this is not possible. Now comes my Questoin, how do I receive my variables which have the form $a_123 or $a_124[]. Is there a workaround for PHP5 or PHP in general? Who do I make $data = $_REQUEST['a_123'] work ??? I'd hate to set global variables to on, as I'm dealing with sensitive data.$form_var = 'a_123'; $data = $_REQUEST[$form_var];