- Code: Select all
<?php
echo '<h1 align="center"> Bharadwaj Cartz.com</h1>';
echo '<form action="order.php" method="post">';
echo '<select name="item">';
echo '<option> windows vista </option>';
echo '<option> windows7 </option>';
echo '<option> windows8 </option>';
echo '</select>';
echo ' Quantity : <input type="text" name="quantity" />';
echo '<input type="submit" value="Order Now!" />';
echo '</form>';
?>
- Code: Select all
<?php
$item = $_POST['item'];
$quantity = $_POST['quantity'];
echo 'Thank u! ' . $item . ' quantity ' . $quantity;
?>


