• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Why would PHP not be parsing parameters from a URL correctly?

beer

Lifer
I downloaded the tree structure of my web site onto my local Linux server to make some changes.
I used phpMyAdmin to duplicate the databases.

However, parameters that I pass via a URL are not being picked up in the scripts I write. if I pass a parameter, say, page.php?intID=5, the variable $intID doesn't exist, but it does on the remote server.

Obviously the problem is in my php.ini file. Anyone know what line I shhould change?
 
You're assuming globals are registered, which they shouldn't be.

?intID=5 should not be $intID, but instead should be $_GET['intID']

Rob
 
you can turn register_globals on, but ideally it is betetr to leave it off for security and performance reasons. to get the intID, the proper method would be to do:

$intID = $_GET["intID"]

then use $intID where you need it
 
Back
Top