Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.