Jump to content

passing vaules through header Location?


spires

Recommended Posts

Hi

 

Just a quick question.

 

I'm trying to pass an ID value to another page using Header Location.

$id = $row['aff_id'];
header("Location:aff_tools.php?id=".$id."");

 

However, its not showing in the address bar on the

next page.

It jsu shows:

aff_tools.php?id=

 

I use this link all of the time, but it does not seem to work with the header.

 

Any ideas

 

I have also tryed:

$id = $row['aff_id'];
header("Location:aff_tools.php?id=$id");

AND

$id = $row['aff_id'];
header("Location:aff_tools.php?id='.$id.'");

 

Thanks

:)

Link to comment
https://forums.phpfreaks.com/topic/71651-passing-vaules-through-header-location/
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.