0
0

More than 3 years have passed since last update.

今月の日付を出す。

Posted at

来月の日付を出すにはどうしらしいんだろう?

output2.php
puts 'code with syntax'
<form action="output2.php" method="get" accept-charset="utf-8">
<dl>
<dt>日にち</dt>
<dd>
<select name="day" id="day">
<?php for ($day=1; $day<=date('t'); $day++) {
    print('<option value="' .$day. '">' .$day. '日</option>');
    }
?>
</select>
</dd>
</dl>
</form>
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0