Hi,

I have a framed webpage who's menu sends a variable via the url (eg. www.nextpage.com?name=fred) to the content page frame. In my example the content page would then get Fred's details from the mysql database and display them in the content page. All was well in php3. Now I have upgraded to php4 the page www.nextpage.com loads, but it is empty indicating that the '?name=fred' portion of the url was not received.

I ran ./configure with --enable-track-vars, and, even stranger, it runs OK on our in-house intranet server (just upgraded to 4.2.0 on that too).

Any thoughts or suggestions please?

kind regards, Graham

    You probably have it configured to not automatically set the variables.
    Here are to ways to fix the problem.
    1. Check your php.ini and change register_globals to on (Its in the "Data Handling" section).

    1. Use $_GET["name"] instead of just $name.

    Hope this helps.

      Many thanks for that. However, here's the rub.

      I have two linux based cobalt raq3 servers. One on our office intranet, and one on the 'net. The intranet box runs the php scripts ok (eg passes the variables), the one on the web does not pass the variables. Both 4.2.0s compiled with the same ./configure command (I cut and pasted it via my SSH2 client) Both php.ini files are the same.

      Any thoughts anyone please?

      best, Graham

        Thanks Bryan. I just installed PHP4 and no variables were being passed from forms - changing register_globals to "on" did the trick.

          I had a similar problem, and was rectified when I changed the register_globals to on too. Thanks!

            I've got still the same problem, I've switched it to 'on', but it will still not work. There is given a code solution for the scripts, but I don't want to change all my scripts.
            anybody a solution?

              Write a Reply...