Hi Everyone, I am helping a good friend of mine to design a website, but we have got a bit stuck -
Hoping someone can help us out.
We are trying to add a var from our database into the header location.
like this -
We are checking the database for an existance from our select query
If our results are true, ie. >0
then when would like to add the var $mobnumid to the header location. Like above
The page is redirecting correctly, but our variable $mobnumid is not being added.
What is it that we are missing?
4 Months Ago
Related Article:header Location to include post variable
is a PHP discussion thread by DaveyMoyes that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: header, location, post, variable.
@diafol - Thanks for your help.
I reread the code and found the following problems.
$mobnumid = $row['id']; should be
$mobnumid = $row_data['id']; - that would help with getting the var
I then need to to concactinate the var to header location like this
header( "Location: resend.php?activate=".$mobnumid);
All working great now thanks,