Jump to content

Getting posted values using $var not $_POST['var']


ruski

Recommended Posts

Hi friends,

 

I have a little problem. Just switched server and most of my code is broken due to a lot of form posted variables being retrived by using its variable name e.g:

 

$variable = $variable;

 

and not

 

$variable = $_POST['variable'];

 

I was wandering what is the name of the php config that I can alter to enable my code to work in such a way again.

 

Thanks in advance

register_globals have been complete removed in php6, so you will need to correct your code before it will work under php6. register_globals being on also allow hackers to set session variables by simply putting same name GET parameters on the end of the URL when they visit your pages.

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.