note 59184 deleted from function.date by derick

From: Date: Sun, 15 Jan 2006 12:36:22 +0000
Subject: note 59184 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101810@lists.php.net to get a copy of this message
Note Submitter: garis at intec dot edu dot do ---- To print a drop down box, with the next three years: can be used for days, months, etc. or any other value you want to print a lot of values... there is just the concept <select name="year"> <option selected>YEAR</option> <?php $year = date('Y'); $itmp = $year+3; for ($i=$year; $i <= $itmp; $i++) { printf('<option value=\''.$i.'\'>'.$i.'</option>'); } ?> </select>

« previous php.notes (#101810) next »