PHP and Web Technologies Freak
1 2 3 4 5 6 7 8 9 10 | <?php foreach($_POST as $postkey =>; $postvalue){ $$postkey = $postvalue; } foreach($_GET as $getkey => $getvalue){ $$getkey = $getvalue; } ?> |
Copyright © 2007 - Ersin Acar - is proudly powered by WordPress
Dilectio Theme is created by: Design Disease brought to you by Smashingmagazine.com
SomeDude
March 3rd, 2010 at 01:04
Cheers, that was exactly what I was looking for!
Scott
June 8th, 2011 at 17:26
Don’t do this!
Register globals is gone because it was a security nightmare. If you do this, any value added to the query string will just parachute directly into the context of your code.