Уважаемые, помогите пожалуйста!!! Я новичок в пхп. Неполучается обработать форму. Код формы: <form action="processorder.php" method="POST"> <table border=0> <tr bgcolor=#cccccc> <td width=150>Item</td> <td width=15>Quantity</td> </tr> <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>Spark Plugs</td> <td align=center><input type="text" name="sparkqty" size=3 maxlength=3></td> </tr> <tr> <td colspan=2 align=center><input type=submit value="Submit Order"></td> </tr> </table> </form> Код processorder.php такой: <html> <head> <title>Order Results</title> </head> <body> <hl>Bob's Auto Parts</hl> <h2>Order Results</h2> <?php echo "<p>Order processed at"; echo date("H:i, jS F") ; echo "<br>" ; echo "<p>Your order is as follows:"; echo "<br>"; echo $tireqty." tires<br>"; echo $oilqty." bottles of oil<br>"; echo $sparkqty." spark plugs<br>"; ?> </body> </html> Когда жму submit order выдает неверный дискриптор меню.
Попробуй так PHP: Код processorder.php такой: <html> <head> <title>Order Results</title> </head> <body> <hl>Bob's Auto Parts</hl> <h2>Order Results</h2> <?php echo "<p>Order processed at"; echo date("H:i, jS F") ; echo "<br>" ; echo "<p>Your order is as follows:"; echo "<br>"; $tireqty = $_POST['tireqty']; $oilqty= $_POST['oilqty']; $sparkqty= $_POST['sparkqty']; echo $tireqty." tires<br>"; echo $oilqty." bottles of oil<br>"; echo $sparkqty." spark plugs<br>"; ?> </body> </html>