Having a difficult time setting up my if else statement. I have no clue what I'm doing wrong here. Any tips or help would go a long ways! Thanks so much!
First page
form action="total.php" method='POST'>
Quantity:
<input type="number" name="number">
<input type="submit">
</form>
My PHP statement page:
<?php
$number = $_POST['number'];
?>
<!DOCTYPE html>
<html>
<head>
<title>HA</title>
</head>
<body>
<?php
if($number < 3){
echo ' Thank you for ordering ';
}
else{
echo 'sorry we do not offer that many';
}
?>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire