溫瑞烘老師的教學歷程檔案(Teaching ePortfolio) - PHP教學 - Type=checkbox之二
 

資訊管理系
副教授
温瑞烘


歷程檔案 Portfolio


關於我 About Me

Type=checkbox之二

<?php
 $command=$_POST["command"];
 if ($command==null)
  {
   echo("<html>
         <body>
         <center>
         <form method=post action=$SELF_PHP>
         選項:
         <p>
         <input type=checkbox name=choice[] value=1>choice 1
         <p>
         <input type=checkbox name=choice[] value=2>choice 2
         <p>
         <input type=checkbox name=choice[] value=3>choice 3
         <p>
         <input type=checkbox name=choice[] value=4>choice 4
         <p>
         <input type=checkbox name=choice[] value=5>choice 5
         <p>
        <input type=submit name=command value=送出>
        <input type=reset  name=command value=清除>
        </form>
        </center>
        </body>
        </html>");
  }
if ($command=="送出")
 {
  $choice=$_POST["choice"];
  $result=$choice[0].$choice[1].$choice[2].$choice[3].$choice[4];
  echo("<html>
        <body>
        <center>
        選項:$result;
        <p>
        </center>
        </body>
        </html>");
 }
?>
全部共 0則留言
登入帳號密碼代表遵守學術網路規範
 


文章分類 Labels

 


最新文章 Top10

中華科技大學數位化學習歷程 - 意見反應