PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Dear All,
I have installed PHP on a win2000 machine. The problem is that I cant pass data (Form variables) from one page to another with "POST" methord. At the same time the "GET" Methord works.
But I later came to know that I could use this code to over come the problem:
you will want to check this out http://uk.php.net/language.variables.predefined as it will explain why.
the short of it is under older verisons of php you could do what you where doing because a feature called register_globals was turned on by default, now it is turned off for security issues.
You can modify your php.ini file(if your host will let you) and turn register_globals=on to solve your immidiate problem while you go back and change your code.
I was using PHP with reg_glod on earlier. So when I shifted to another machine with it off I was a bit in trouble. I was looking for this code to fetch values from forms. The thing is fine now. Thanks to all of you guys.
$VALUE1 = $_REQUEST['VALUE1']; //To capture data irrespect of send mathods
$VALUE1 = $_GET['VALUE1'];// for data send with GET method.
$VALUE1 = $_POST['VALUE1'];// for data send with POST method.