Sever does not pick up 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
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Sever does not pick up variables...

Post by GeXus »

I just switched servers and im finding that I HAVE to use $_GET for query string parameters, is there a setting or something I can change so this is not required? I'm also using variables appended to the url inside a XMLHTTPRequest object and no matter what I try I cannot get those values on the page being requested, everything worked perfect on my previous server...

Thanks!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

If you weren't using $_GET before, what were you using?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

register_globals?

or http_long_vars? (e.g. $HTTP_GET_VARS['var'])

either way, it is widely accepted as best practice to use $_GET, $_POST, etc.. :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I suspected register_globals, but I wanted to get a confirmation from the OP.
Post Reply