Re: Sessions and Forms
| From: | Nick Wilson | Date: | Sat, 08 Jun 2002 07:24:31 +0000 |
| Subject: | Re: Sessions and Forms | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101252@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* and then Greg Macek declared....
> Ok, I'll have to try that on my next project. Unfortunately these forms
> were written by another developer and there too many variables to rename
How about something like this:
foreach($HTTP_POST_VARS as $key => $val) {
$myFormData['$key']=$val;
}
Then you just register the $myFormData and it will be available to you
whenever you need it.
- --
Nick Wilson // www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE9AbEvHpvrrTa6L5oRAirPAJ9HylqSk9NBsNsTjjRZZ2fBHN3K3QCdGzdS
t6yXIWhWu76VxfGkpQp6JdI=
=uZMW
-----END PGP SIGNATURE-----