note 75094 deleted from tutorial.forms by nlopess

From: Date: Sat, 12 May 2007 11:24:35 +0000
Subject: note 75094 deleted from tutorial.forms by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126436@lists.php.net to get a copy of this message
Note Submitter: BlueStockings_bs at sbcglobal dot net ---- <html> <head> <title>New Page 1</title> </head> <body> <form action="hello.php" method="post"> <p>Your name: <input type="text" name="name" /></p> <p>Your age: <input type="text" name="age" /></p> <p><input type="submit" /></p> </form> Hi <?php echo htmlspecialchars($_POST['name']); ?>. You are <?php echo (int)$_POST['age']; ?> years old. </body> </html> _______________ Note the form action points to a filename.php If that file is not on your machine... example "action.php" (wasn't on mine) and the file name you are using is different .. such as hello.php (which was name I was using to test the code) then you will get an error message. Make the form action point to the page filename you are actually using and everything checks out ok. A BlueStocking observation. BTW: Thank you... very much appreciated.

« previous php.notes (#126436) next »