kuyarey Posted June 24, 2015 Share Posted June 24, 2015 Anything wrong I'm doing? Supposed to show a drop down value of 1 - 31 days but the drop down option is just showing the word "day".. Thanks for the help <select name="day"> <option value="">Day</option> <?php // Print out 31 days: for ($i = 1; $i <= 31; $i++) { print "<option value=\"$i\">$i</option>"; } ?> </select> Link to comment https://forums.phpfreaks.com/topic/297011-for-loop-not-working/ Share on other sites More sharing options...
Psycho Posted June 24, 2015 Share Posted June 24, 2015 The code looks fine. Is the page being processed through a web server with PHP enabled? Link to comment https://forums.phpfreaks.com/topic/297011-for-loop-not-working/#findComment-1514855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.