First of all, are you trying to write hour or minute ?
I don't know if that's a must to use an array to carry those vals,
but how about :

$min = '0'.$min if ($min < 10 ) ;



----- Original Message -----
From: "Kevin Old" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 10:46 PM
Subject: Hours popup menu


> Hello all,
>
> What I'd like to do is create a popup menu on a web page that has the
hours 00-59 in it.  Thing is, the only way I can come up to do it is by
writing out something like below......and then putting a reference to this
array in the code for the popup menu.
>
> @hoursvals = (00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59);
>
> I tried something like this:
>
> @hoursvals = (00 .. 59);
>
> but, instead of getting "00, 01, 02...so forth" I get "0, 1, 2, 3...so
forth".
>
> Anyone know how I can dynamically create the list with the first ten
having a preceeding zero?
>
> Thanks,
> Kevin
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to