|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-11 12:25 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
I have this form: <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>Tyres</td> <td align=center><input type="text" name="tyreqty" 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> The file processorder.php starts like this: <? echo "<p>Order processed at "; // Start printing order echo date("H:i, jS F"); echo "<br>"; echo "<p>Your order is as follows:"; echo "<br>"; echo $tyreqty." tyres<br>"; echo $oilqty." bottles of oil<br>"; echo $sparkqty." spark plugs<br>"; When I upload it to the server I get this error: Your order is as follows: Notice: Undefined variable: tyreqty in c:\inetpub\wwwroot\processorder.php on line 15 tyres Notice: Undefined variable: oilqty in c:\inetpub\wwwroot\processorder.php on line 16 bottles of oil Notice: Undefined variable: sparkqty in c:\inetpub\wwwroot\processorder.php on line 17 spark plugs What do I have to do to fix this? as I can`t get very far if I can`t post variables from one page to another. I am aware that this error may already have been posted but with a ISDN line for 50 people here searching the bugs is taking too long. Could you at least supply me a link to the correct bug? Thanks in advance Andy