- <html>
- <head>
- <title>剪刀石頭布遊戲</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <!-- get=>網址傳址, post=>封包傳值 action="送出到指定頁面" -->
- <form method="post" action="process.php">
- 姓名:<input type="text" name="name" /><br />
- 性別:
- <label><input type="radio" name="gender" value="M" checked="checked" />男</label>
- <label><input type="radio" name="gender" value="F" />女</label><br />
- 請選擇
- <select name="type">
- <option value="scissors">剪刀</option>
- <option value="stone">石頭</option>
- <option value="paper">布</option>
- </select><br />
- <input type="submit" name="send" value="送出!" />
- </form>
- </body>
- </html>
複製代碼 |