Okay- I don't know what's going on with this. I installed Apache and php on my other computer and it works fine. The same scripts also work fine if I upload them to my web site. The problem is, on this computer I can't seem to store variables in URLs or in separate files- for example the include function. If I make the variable $selection and put in the url ?selection=whatever, it isn't working. It won't regognize the variable. This is also true with any type of form where you type in something and that becomes the variable. The problem is *not* with the scripts, it's with either php or apache. But I don't know enough about editing the php.ini file and things like that to know what's going on! I don't like to have to go online and upload each file to test it. Everything else about php works file though. Does anyone know how I can fix this problem? thanks.
Sounds like your apache installation has register_globals turned off. You can figure out if this is the problem by writing a script that simply echoes the output of the function php_info() and then look for the register_globals line. You can also find out more information about this configuration at: [php.net...]
If I make the variable $selection and put in the url ?selection=whatever, it isn't working. It won't regognize the variable.
Do you have the same version of PHP running? This practice is deprecated and I believe that register globals is now turned off by default. If you have older versions of PHP on the other machines, it would work, but not with the new install.