|
I have just started using php on my own serer/pc, and am tryin to get php forms to work. i have read tutorials on the internet yet am still stuck. This is my problem.
One example is -
Order.php
Quote:<h4>Tizag Art Supply Order Form</h4>
<form action="process.php" method="post">
<select name="item">
<option>Paint</option>
<option>Brushes</option>
<option>Erasers</option>
</select>
Quantity: <input name="quantity" type="text" />
<input type="submit" />
</form>
and then
process.php
Quote:
<?php
$quantity = $_POST['quantity'];
$item = $_POST['item'];
echo "You ordered ". $quantity . " " . $item . ".<br />";
echo "Thank you for ordering from Tizag Art Supplies!";
?>
This displays the content of the ther order.php form but how can i make it send the form results to my e-mail ?
thanks
Eric
|