PHP初心者です。
PHP初心者です。カレンダースケジュールを作りたいのですが、以下について質問させていただきます。
selectボタンで2010~2020までのカレンダーを表示させることは出来たのですが、スケジュール欄にテキストボックスを作り、スケジュールを保存したいのですが、この部分でつまづいています。
PHPを勉強し始めて日が浅いのですが、宜しくお願い致します。
どなたかご教授下さい。
<html>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<body>
<form method="post" action="<? print($PHP_SELF); ?>">
<select name="year">
<?
for($nen=2010 ; $nen<2020; $nen++){
$kotosi=date("Y");
if($kotosi==$nen){
print("<option value='".$nen."' selected>".$nen."</option>");
}else{
print("<option value='".$nen."'>".$nen."</option>");
}
}
?>
</select>
年
<select name="month">
<?
for($tuki=1 ; $tuki<13; $tuki++){
$kongetu=date("n");
if($kongetu==$tuki){
print("<option value='".$tuki."' selected>".$tuki."</option>");
}else{
print("<option value='".$tuki."'>".$tuki."</option>");
}
}
?>
</select>
月
<input type="submit" value="表示">
</form>
<table border>
<tr><th>日付</th><th>曜日</th><th>スケジュール</th></tr>
<?
$year=$_POST["year"];
$month=$_POST["month"];
$wstr=array('日','月','火','水','木','金','土');
for($i=1;checkdate($month,$i,$year);$i++){
$t=mktime(0,0,0,$month,$i,$year);
$w=date("w",$t);
print("<tr><td>".$i."</td><td>".$wstr[$w]."</td><td><input type='text' size='30'><input type='submit' value='Buttom'></td></tr>");
}
?>
</table>
</body>
</html>