correctsearch

Active Member
Sep 24, 2004
30
0
156
My website has php script which use to read data posted as form variable to url variable by simplyusing $variable_name.

Recently I have restored my server and these scripts no longer work. It also does not give any error message. I have tried to degubg the code by printing these varibale then I have noticed that the varibale can only be read by using HTTP_GET_VARS or HTTP_POST_VARS.

Does someone can help me what do I need to change so that the varibales can be read without using HTTP functions? It is used to work in the past.
 

webignition

Well-Known Member
Jan 22, 2005
1,876
2
166
You'll need to enable a feature called register_globals, however doing so introduces a few security concerns with the short answer being that you're better off with register_globals disabled.

Just stick with HTTP_POST_VARS and HTTP_GET_VARS, or preferably $_POST and $_GET, as this is much more secure.