Page 1 of 1

Sever does not pick up variables...

Posted: Tue Aug 08, 2006 7:31 pm
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!

Posted: Tue Aug 08, 2006 7:57 pm
by RobertGonzalez
If you weren't using $_GET before, what were you using?

Posted: Tue Aug 08, 2006 8:09 pm
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.. :)

Posted: Tue Aug 08, 2006 10:41 pm
by RobertGonzalez
I suspected register_globals, but I wanted to get a confirmation from the OP.