Hello
I'm using a form with a dropdown list. When the user select "Test1" in the dropdown then press the button "Submit" it has to send the data to www.test1.com.
When the user select "Test2" in the dropdown then press the button "Submit" it has to send the date to www.test2.com.
Also the data they've filled in has to come with.
I'm working with a datacheck.php, so when the press submit it post to datacheck.php and there I have following code:
<?php
if(isset($_POST['TEST1']) && $_POST['TEST1']== 'Y'){
header("Location: http://mysite.com/sage/page1.php");
}
else {
header("Location: http://mysite.com/sage/page2.php");
}
?>
But it doesnt work, it goes directly to page2.php even when I've selected Test1 in the dropdown.
Does anyone has an idea?
Grts