Jump to content

Losing/Overwriting GET information


Mad Mick

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.