Click to See Complete Forum and Search --> : not reading variables
Al123
09-03-2002, 02:27 PM
I have installed the Latest version of PHP (4.2) over Apache 1.3 on win2k. everything seems to be working except that I cannot pass variables from one page to another. the second page does not read it. this might be a simple overlook, but i just cant seem to figure it out. I am attempting to pass the variable through the URL (i.e. http://bla.bla.com?var1=value). can someone please help? Thank you!
jerdo
09-03-2002, 03:14 PM
Use $_GET[var_name] or $_POST[var_name]
In new versions of PHP globals variables are disabled by default
Al123
09-03-2002, 03:59 PM
Thank you for all your help everyone. I've figured out what the poblem was. In case anyone else is having similar issues...
in the php.ini file the "register_globals" is set by default to "Off" for security reasons. i switched to "On" and it is now working.
Again thank you all for your help!
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.