![]() |
溫瑞烘老師的教學歷程檔案(Teaching ePortfolio) - PHP教學 - Type=password |
| Type=password<?php$command=$_POST['command']; // 取出變數值 if ($command==null) { // 空值, 未經由form傳送 echo "<html>"; echo "<body>"; echo "<center>"; echo "<form method=post action=$SELF_PHP>"; echo "使用者名稱:"; echo "<input type=text name=username size=10>"; echo "<p>"; echo "使用者密碼:"; echo "<input type=password name=password size=10>"; echo "<p>"; echo "<input type=submit name=command value=送出>"; echo "<input type=reset name=command value=清除>"; echo "</form>"; echo "</center>"; echo "</body>"; echo "</html>"; } else if ($command=='送出') { $username=$_POST["username"]; $password=$_POST["password"]; echo "<html>"; echo "<body>"; echo "<center>"; echo "使用者名稱為" . $username . "<br>"; echo "使用者密碼為" . $password . "<br>"; echo "</center>"; echo "</body>"; echo "</html>"; } ?>
|
|
中華科技大學數位化學習歷程 - 意見反應 | ![]() |