Addressing QueryString variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
akinsgre
Forum Newbie
Posts: 2
Joined: Mon Oct 10, 2005 9:25 am

Addressing QueryString variables

Post 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
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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. :)
akinsgre
Forum Newbie
Posts: 2
Joined: Mon Oct 10, 2005 9:25 am

Thanks

Post by akinsgre »

Thanks!

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

Thanks for enlightening me!

-greg
Post Reply