I have a formpage having:
<p align="left"><input type="submit" value=" Place Order " name="V1" style="font-weight: 700"><input type="submit" value="Continue with Order" name="V2" style="font-weight: 700"></p>
It gets posted to the next form which opens with:
<?
session_start()
?>
<?
if (isset($_POST['V1'])) {
header('location: test1.php');
exit();
}
if (isset($_POST['V2'])) {
header('location: test2.php');
exit();
}
?>
But it keeps going to test2.php
Please tell me why? Thanks
<p align="left"><input type="submit" value=" Place Order " name="V1" style="font-weight: 700"><input type="submit" value="Continue with Order" name="V2" style="font-weight: 700"></p>
It gets posted to the next form which opens with:
<?
session_start()
?>
<?
if (isset($_POST['V1'])) {
header('location: test1.php');
exit();
}
if (isset($_POST['V2'])) {
header('location: test2.php');
exit();
}
?>
But it keeps going to test2.php
Please tell me why? Thanks