RE: need for $_POST[''] changed after server upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13 December 2005 04:22, Ray wrote:

> Hello,
> Thanks Matt, I appreciate your help. your solution is a lot
> easier than mine.

even easier:

    extract($_POST);

> 
> -----Original Message-----
> From: "Matt Babineau" <matt@xxxxxxxxxxxxxxxx>
> To: "'Ray'" <ray@xxxxxxxxxx>, <php-general@xxxxxxxxxxxxx>
> Date: Sun, 11 Dec 2005 22:42:46 -0800
> Subject: RE:  need for $_POST[''] changed after server upgrade
> 
> > Register globals is no longer ON I believe. That is why it happened.
> > 
> > To fix this:
> > 
> > Foreach($_POST as $key => $value) ${$key} = $value;
> > 
> > That will convert all of your post variables to local variables.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux