So where did I go wrong.
This is the html code.
<form action="order001.php" method="post" style="height: 460px"> order01<input id="order01" style="width: 40px" type="text" /> <br /> order02<input id="order02" style="width: 40px" type="text" /><br /> order03<input id="order03" style="width: 40px" type="text" /><br /> <br /> <input name="Submit1" type="submit" value="submit" /> </form>
This is the php code.
<?php
$order01 = $_POST["order01"];
$order02 = $_POST["order02"];
$order03 = $_POST["order03"];
if ( $order01 > 0 ) {
echo " amount of $order01 <br />";
}else {
break;
}
if ( $order02 > 0 ) {
echo " amount of $order01 <br />";
}else {
break;
}
if ( $order03 > 0 ) {
echo " amount of $order01 <br />";
}else {
break;
}
?>
I'm not trying to use any array just yet but if you know how I'm willing to learn. :D
Any comments or critique is welcomed.


Sign In
Create Account


Back to top









