Re: Help with proper post method...

From: Date: Wed, 06 Apr 2005 05:30:25 +0000
Subject: Re: Help with proper post method...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212361@lists.php.net to get a copy of this message
very quick and *very* dirty, put this in top of your file extract($_POST); and voila, you bypassed "registerglobals off" -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com ----- Original Message ----- From: "Joey" <Joey@Web56.Net> To: "PHP" <php-general@lists.php.net> Sent: Wednesday, April 06, 2005 2:23 PM Subject: [PHP] Help with proper post method... > OK I am migrating some sites from an old school server to one with MySQL 4 > & > newest PHP, however certain things aren't running because of the > register_globals variable on the new server is set to OFF for security > reasons. > > What I am trying to do is post like so with hidden variables > > <form method="post" action="display_info.php"> > > The display_info.php says Undefined variables in the file, because of > course > since globals is off it's not being passed to it from the first form. > > Now I'm not trying to become the master here, but need a quick and dirty > way > of patching these programs to accept the hidden passed values so I don't > have to go and re-code everything... > > Any links to a good example etc would be greatly appreciated. > > Thanks! > > Joey > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#212361) next »