|
Posted by David Haynes on 05/19/06 04:58
David Haynes wrote:
Typed too fast, correction below:
> fprintf($out, '%02d', $_POST['logday']);
>
> Also, for kicks, the form part could be:
>
> <select class="inform" name="logday">
> <?php
> foreach( range(1, 10) as $v ) {
> printf("<option value="%d">%d</option>\n", $v);
printf("<option value=\"%02d\">%d</option>\n", $v);
> }
> ?>
>
> -david-
>
Navigation:
[Reply to this message]
|