report an error as shown in the figure:
localhostHtml
htmlorderform -1,processorder1.php
orderform-1 Eprocessorder1.phpDD:XAMPPhtdocs
:
,:
< / H2 >
I looked at it and it seemed that the download item had been downloaded to disk C.
the following code is the code named processorder1.php (written and stored in the D:XAMPPhtdocs directory of d disk):
<html>
<head>
<title>Bob"s Auto Parts - Order Results</title>
</head>
<body>
<h1>Bob"s Auto Parts</h1>
<h2>Order Results</h2>
<?php
echo"Order Processed.
";
echo"Order processed at";
echo date("H:i,jS F Y");
echo"
";
$tireqty = $_POST["tireqty"];
$oilqty = $_POST["oilqty"];
$sparksqty = $_POST["sparksqty"];
echo "Your Order is as follows:
";
echo $tireqty."tires<br/>";
echo $oilqty."bottles<br/>";
echo $sparksqty."spark plugs<br/>";
?>
</body>
</html>
< hr >
The code of orderform-1.html is as follows (written and saved in the project folder of disk E):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
</style>
</head>
<body>
<form action="processorder1.php" method="post">
<table border="0">
<tr bgcolor="-sharpcccccc">
<td width="150">Item</td>
<td width="15">Quantity</td>
<tr>
<td>Tires</td>
<td align="center"><input type="text" name="tireqty" size="3"
maxlength="3"/></td>
</tr>
<tr>
<td>Oil</td>
<td align="center"><input type="text" name="oilqty" size="3"
maxlength="3"/></td>
</tr>
<tr>
<td>Sparks</td>
<td align="center"><input type="text" name="sparksqty" size="3"
maxlength="3"/></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
value="Submit Order"/></td>
</tr>
</table>
</form>
</body>
</html>