Mad Mick Posted March 11, 2008 Share Posted March 11, 2008 I am sending information from a form with a dozen or so fields, using the "get" method, to another page for processing. I can see that the correct information is passed from the browser address bar, but not all the information can be viewed when I do print_r($_GET). The missing variable is $_GET['company_id'] - I also use $company_id throughout the website but in this case it is null from the previous page and overwriting the real value coming from the form. I thought it might be a register_globals problem but that is switched off on the server. When I change the variable name all is OK so somehow this "global" variable is overwriting what I am sending from the form... I'm confused, any ideas? Is turning register_globals off enough to ensure that these variables don't get passed? Link to comment https://forums.phpfreaks.com/topic/95584-losingoverwriting-get-information/ Share on other sites More sharing options...
r-it Posted March 11, 2008 Share Posted March 11, 2008 the thing is, get disregards everything after a certain number of characters, it would be best to use $_POST for larger data Link to comment https://forums.phpfreaks.com/topic/95584-losingoverwriting-get-information/#findComment-489320 Share on other sites More sharing options...
trq Posted March 11, 2008 Share Posted March 11, 2008 Were going to need to see some code. Link to comment https://forums.phpfreaks.com/topic/95584-losingoverwriting-get-information/#findComment-489321 Share on other sites More sharing options...
PFMaBiSmAd Posted March 11, 2008 Share Posted March 11, 2008 Are you sure register globals are off at runtime, through verifying the setting in a phpinfo() statement? Link to comment https://forums.phpfreaks.com/topic/95584-losingoverwriting-get-information/#findComment-489433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.