Page 1 of 1

Addressing QueryString variables

Posted: Mon Oct 10, 2005 9:33 am
by akinsgre
I am relativey new to PHP.

I had developed a website using PHP4.

The QueryString variables could be addressed directly $page instead of $_GET['page']

This worked fine when I moved to a ISP hosted PHP site.

However, I just rebuilt my development machine. Now, addressing the QueryString variables directly doesn't work on the development machine.

I assume I just missed a module when I did the installation.

Can anyone provide some direction?

Thanks in advance

-greg -> angrygreg@yahoo.com

Posted: Mon Oct 10, 2005 9:36 am
by Jenk
register_globals is Off.

Turning them on will work, but it is recommended you leave them off and adjust your code to use $_GET/$_POST etc. :)

Thanks

Posted: Mon Oct 10, 2005 9:42 am
by akinsgre
Thanks!

I had read about REGISTER_GLOBALS a moment ago, but didn't quite see the connection.

Thanks for enlightening me!

-greg