Posted By

llbbl on 05/27/07


Tagged

form get php textmate forms Processing


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
Abe


foreach $_GET


 / Published in: HTML
 

  1. foreach($_GET AS $key => $value) {
  2. ${$key} = $value;
  3. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: adkatrit on February 18, 2011

keep in mind here that you are letting ANY variable that comes in as GET data to be set to whatever variable name that is defined by the USER. thereby overwriting anything with that name in the scope of this code. This code effectively implements register_globals... something that was deprecated for security concerns. This may be an extremely efficient, time saving technique, but it makes it very easy to defeat your system.... i would suggest removing this from any code you have in the wild.

You need to login to post a comment.