I'm having a problem passing data from 1 php page to another. I know I am doing it right. Is there setting I missed in the php.ini file or someplace to be able to pass data again. It used to work fine until I had to reinstall php due to a corrupt file. Heres an example url of how I'm passing the data. http://www.myserver.com/page1.php?id=1&id2=1
Note that that url doesn't actual work. Its only an example.
Thanks for any help in advance.🙂
Is register_globals off in your php.ini file? If so, use $GET[] and $POST[], like this:
$id = $_GET['id'];
Note: You use $_POST when the data was passed to the script via an HTTP POST, or in other words, through a form that has method="post".
Thanks for your help. I got it working again.
was that the problem? if not, what solved it?
The problem was that register_globals wasn't turned on.