I'm *positive* there is a better way, but this should work (untested): <form> <select name="date"> <? $stamp = time(); $i = 0; while($i <= 30) { if($i > 0) { $stamp = $stamp + 86400; } $date = date('d-m-Y',$stamp); echo "<option value=\"{$date}\">{$date}</option>"; $i++; } ?> </select> </form>
Cheers, Justin on 07/01/03 4:39 PM, Bruce Levick ([EMAIL PROTECTED]) wrote: > Howdy, > I am looking to populate a list menu with the current date and then the > 30days after that current date. Is there a small snippet of code that > achieves this?? > > Cheers > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- > [This E-mail scanned for viruses] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php