第五次作業

<?php $command=$_POST["command"];
if ($command==null) { echo("<html> <body> <center> <form method=post action=$SELF_PHP> <input type=submit name=command value=送出> <input type=reset name=command value=清除> </form> </center> </body> </html>"); }
if ($command=="送出") { $username=$_POST["username"]; $password=$_POST["password"]; if ($username=='9714D001' && $password=='A111111111') { echo("<html> <body> <center> <form method=post action=$SELF_PHP> 班級 <select name=class size=1> <option value=> </option> <option value=資管一甲>資管一甲</option> </select> <input type=submit name=command value=確定> <input type=reset name=command value=清除> </form> </center> </body> </html>"); } else echo "登入錯誤回上葉重新登入"; }
if ($command=="確定") { } ?>
|