# ペットが死んだとき前回と同じ名前を付けられるようにするか。(yes = 1, no = 0) $samename = 1; |
print "<tr>\n"; print "<td>\n"; &tabletop; print "名前:"; &input('text','petname','ましお',' maxlength="10"',''); print "</td>\n"; print "</tr>\n"; print "<tr>\n"; print "<td>\n"; print "性別:"; &input('radio','sex','0','','オス'); # こちらのcheckedを削除 &input('radio','sex','1',' checked','メス'); # こちらにcheckedを追加、頭の半角スペースをお忘れなく。 print "</td>\n"; print "</tr>\n"; |
print "<tr>\n"; print "<td>\n"; &tabletop; print "名前:ましお"; &input('hidden','petname','ましお','',''); # &input('text','petname','',' maxlength="10"',''); print "</td>\n"; print "</tr>\n"; print "<tr>\n"; print "<td>\n"; print "性別:メス"; &input('hidden','sex','1','',''); # &input('radio','sex','0',' checked','オス'); # &input('radio','sex','1','','メス'); print "</td>\n"; print "</tr>\n"; |