第12週Form Radio<?php $command=$_POST["command"]; if ($command=="") { echo "<html> <body> <center> <form method=post action=''> <input type=radio name=choice value=1>選項 1 <br> <input type=radio name=choice value=2>選項 2 <br> <input type=radio name=choice value=3>選項 3 <br> <input type=submit name=command value=送出> <input type=reset name=command value=清除> </form> </center> </body> </html>"; } if ($command=="送出") { $choice=$_POST["choice"]; echo "<html><body> <center> 選項:$choice <p> </center></body></html>"; } ?> 寫一程式 完成下列輸入 班級:四技資管三甲 四技資管三乙 四技資管三丙 學號 : 輸入 姓名 : 輸入 網站 : Yahoo Google 中華科大 三選一 性別:男 女 興趣:至少五選一 喜歡的工作類型:至少五選一 輸出每列一個項目, 網站部份為超連結 |