<select name="start_day"> <?php global $LOC; $current_time_day = $LOC->decode_date('%d', $LOC->now); for ($i = 1; $i <= 31; $i++) { echo "<option value='$i'"; if ($i == $current_time_day) { echo " selected='selected'"; } echo ">$i</option> "; } ?> </select>
You need to create an account or log in to post comments to this site.