Hi,
I have a link that when you click on, opens a page, displaying data according to a viriable in the link, i.e. www.domain.com/link.php?$value.
At the botton of this page, that has displayed the information, I want to have a button, that will open another page, based on the same variable, i.e. www.domain.com/link2.php?$value.
I have done
if ($submit) {
Header("Location: http://www.domain.com/link2.php?$value");
}
And then..
<form action="'. $PHP_SELF .'" method="POST">
<input type="SUBMIT" name="submit" value="Select">
</form>
But for some reason, it just opens the same page up, not the link specified in the if($submit)
Can anyone see where I'm going wrong?
Cheers
Ben