HTML表單 form<html> <!-- HTML 開始 --> <body> <!-- 本體 --> <center> <!-- 置中 --> <form method=post action=form1-2.php> <!-- 表單開始 form --> <!-- post 表示不顯示在url --> <!-- get 表示顯示在url --> <!-- action 表要呼叫的程式 --> 請輸入一個整數: <input type=text name="n" size=10> <!-- type=text 字輸入框 --> <!-- name=n 變數名稱為 n --> <!-- size=10 可輸入10個字元 --> <p> <input type=submit name=command value=送出> <!-- 命令按鈕 顯示送出 --> <input type=reset name=command value=清除> <!-- 清除按鈕 顯示清除 --> </form> <!-- 表單結束 --> </center> <!-- 置中結束 --> </body> <!-- 本體結束 --> </html> <!-- HTML結束 -->
|