PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have two drop down boxes which give me $extract and $extract2. The user can not select the same seat from each drop down. I don't know how to get my IF statement to work.
well it does work but because when the page loads both boxes are null and the same the 'else' message appears
is there a way to say.... ignore IF statement if both boxes are null?
//SUBMIT BUTTON
echo "<br>";
echo "<br>";
echo "<input type='submit' name='select' value='Select Seats'>";
echo "</form>";
//IF TO SEE IF TWO SEATS ARE SAME
if ($_POST['select']="")
{
echo "please choose seats";
}
if ($_SESSION['extract']==$_SESSION['extract2'])
{
echo "You have choosen the same seat twice, please choose two different seats.
<a href='confirm.php'> Go Back</a>";
}