Form 提交表单数据的几种方式
1. submit提交
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>简单的form表单</title>
</head>
<body>
<form action="./index.php" method="post">
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname"><br>
Password: <input type="password" name="pwd"><br>
<input type="radio" name="sex" value="male">Male
<input type="radio" name="sex" value="female">Female<br>
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car <br>
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select><br>
<textarea rows="10" cols="30">
我是一个文本框。
</textarea><br>
<input type="button" value="Hello world!"><br>
<input type="submit" value="Submit"><br>
</form>
</body>
</html>