Last active
December 11, 2015 06:49
-
-
Save MarkyC/4562207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="input-prepend"> | |
<span class="add-on">Day: </span | |
<select name="day" id="day" class="input-block-level"> | |
<?php | |
// create array to populate <option>'s | |
$dow = array( | |
"Sunday", | |
"Monday", | |
"Tuesday", | |
"Wednesday", | |
"Thursday", | |
"Friday", | |
"Saturday" | |
); | |
foreach ($dow as $num => $day) { | |
echo "<option value=\"" . ($num+1) . "\" "; | |
if (($num+1) == $col) echo "selected"; | |
echo ">" . $day . "</option>"; | |
} | |
?> | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment