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> Quote 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? 1 Quote Link to comment https://forums.phpfreaks.com/topic/297011-for-loop-not-working/#findComment-1514855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.