程式一: stone.php 程式二:process.php 圖檔
<html>
<head>
<title>剪刀石頭布遊戲</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form method="post" action="process.php">
姓名:<input type="text" name="name" /> <br/>
性別:
<label><input type="radio" name="gender" value="M" />男 </label>
<label><input type="radio" name="gender" value="F" checked= "checked" />女 </label><br/>
請選擇:
<select name="type">
<option value="scissors">剪刀</option>
<option value="stone">石頭</option>
<option value="cloth">布</option>
</select>
<input type="submit" name="send" value="送出!" />
</form>
</body>
</html> |