please help me out. I'm doing the php with html form thing. but instead of the out, my browser shows the source code .
here is the code for "order.html"
<html><body>
<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>
</body></html>
here is the code for "process.php"
<html><body>
<?php
$quantity = $_POST['quantity'];
$item = $_POST['item'];
print "You ordered ". $quantity . " " . $item . ".<br />";
print "Thank you for ordering from Tizag Art Supplies!";
?>
</body></html>
instead of output, the brower shows -->
"; print "Thank you for ordering from Tizag Art Supplies!"; ?>
i got apache 2.2 and php 5 installed.
here is the code for "order.html"
<html><body>
<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>
</body></html>
here is the code for "process.php"
<html><body>
<?php
$quantity = $_POST['quantity'];
$item = $_POST['item'];
print "You ordered ". $quantity . " " . $item . ".<br />";
print "Thank you for ordering from Tizag Art Supplies!";
?>
</body></html>
instead of output, the brower shows -->
"; print "Thank you for ordering from Tizag Art Supplies!"; ?>
i got apache 2.2 and php 5 installed.