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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.