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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.