Training Help

From: Date: Fri, 12 Sep 2003 11:12:45 +0000
Subject: Training Help
Groups: php.general 
Request: Send a blank email to php-general+get-162408@lists.php.net to get a copy of this message
I recently aquired a copy of the book PHP and Mysql web development by SAMS. I have begun reading through it and it seems to be a very usefull book however I started doing the first exersise which is a simple HTML Processor, the HTML page is as follows: <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <body> <h1>Bob's Auto Parts</h1> <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> </body> </html> And the processor PHP page is: <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <body> <h1>Bob's Auto Parts</h1> <h2>Order Results</h2> <? echo "<p>Order Processed at "; echo date("H:i, "); echo "on "; echo date ("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> I get an error???? this code is taken directly from the book..... Bob's Auto Parts Order Results Order Processed at 21:08, on 12th September Your order is as follows: Notice: Undefined variable: tireqty in c:\inetpub\wwwroot\php\processorder.php on line 16 tires Notice: Undefined variable: oilqty in c:\inetpub\wwwroot\php\processorder.php on line 17 bottles of oil Notice: Undefined variable: sparkqty in c:\inetpub\wwwroot\php\processorder.php on line 18 spark plugs Help Ryan

« previous php.general (#162408) next »