Jump to content

Getting any variables passed in a url string


gotornot

Recommended Posts

This is a bad idea and a huge security hole. This used to be done automatically.  It was called register_globals.  They turned it off by default for a reason. You could duplicate it with this.

foreach($_GET as $k=>$v) { $$k=$v; } 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.