Re: how do I get for to display $_POST value?
| From: | John Nichel | Date: | Mon, 18 Nov 2002 01:39:00 +0000 |
| Subject: | Re: how do I get for to display $_POST value? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124852@lists.php.net to get a copy of this message | ||
<input type="text" name="pin" value="<?php echo $_POST['pin']; ?>" maxlength="20">
Jeff Bluemel wrote:
OK... I have the following code which works perfect. however, when submit is pressed I would like it to display the pin number in the form again. <form action="<?=$HTTP_SERVER_VARS['PHP_SELF']?>" method="post" name="search"> <table border="0" cellspacing="3" cellpadding="3">8 <tr align="left"> <td >Pin :</td> <td colspan="2"><input type="text" name="pin" maxlength="20"></td> <td align="right"><input type="image" src="/images/find-pin.gif" style="background-color:#C2C2C2" name="submit" value="Find Pin" ></td> </tr><tr> <td>Batch :</td> <td><input type="text" name="batch" maxlength="8"></td> <td>Serial :</td> <td><input type="text" name="serial" maxlength="8"></td> </tr> </table>-- By-Tor.com It's all about the Rush http://www.by-tor.com