$POST Q
| From: | William Stokes | Date: | Tue, 12 Dec 2006 08:14:51 +0000 |
| Subject: | $POST Q | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-245727@lists.php.net to get a copy of this message | ||
Hello,
Can someone tell me what wrong or to how to manage this?
//default
$limitorig = 10;
echo "<select name=\"USRlimitorig\">";
echo "<option selected value=>$limitorig</option>";
echo "<option>10</option>";
echo "<option>20</option>";
echo "<option>30</option>";
echo <input type=\"submit\" name=\"resetlimit\"
value=\"GO\">";
When the form is first printed the selected default (10) value is shown OK
and if something is selected everything is fine. If I just hit "GO" without
changing the select menu the form fails because USRlimitorig will be empty.
So how to post the $limitorig if user doesn't change it but hits "GO"
anyway?
Thanks
-Will