Hi,
I do hope it is the right room to ask...
I had to move one of my sites to a new server.
On the new server I can't pass variables using post or get methods.
I am using this method to get the vars:
while (list($name, $value) = each($POST)) {
${$name} = $value;
}
it doesn't working anymore.
Should I need to change something on the php.ini?
Thanks,
Assaf
Problem passing vars
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
What you are trying to do is a bad idea for security reasons, it means it is possible for POST to overwrite previously declared values. So if you are going to do this do it before you declare any variables in your script and use the proper function for doing such things: extract().