spires Posted October 3, 2007 Share Posted October 3, 2007 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 More sharing options...
shocker-z Posted October 3, 2007 Share Posted October 3, 2007 try just echoing $row['aff_id']; echo 'ID is: '.$row['aff_id']; im putting my money on it that $row['aff_id'] is blank/null. p.s. I have a 2 week old daughter so i have no money! Regards Liam Link to comment https://forums.phpfreaks.com/topic/71651-passing-vaules-through-header-location/#findComment-360703 Share on other sites More sharing options...
spires Posted October 3, 2007 Author Share Posted October 3, 2007 ['aff_id'] does have a value in it. Any other ideas? Link to comment https://forums.phpfreaks.com/topic/71651-passing-vaules-through-header-location/#findComment-360714 Share on other sites More sharing options...
shocker-z Posted October 3, 2007 Share Posted October 3, 2007 could you post your full code? Liam Link to comment https://forums.phpfreaks.com/topic/71651-passing-vaules-through-header-location/#findComment-360721 Share on other sites More sharing options...
jaymc Posted October 3, 2007 Share Posted October 3, 2007 header("Location:aff_tools.php?id=sdf"); if you get sdf in your URL then the $id variable has a problem What is $row['aff_id'], more important, where is $row defined Link to comment https://forums.phpfreaks.com/topic/71651-passing-vaules-through-header-location/#findComment-360726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.