復制代碼 代碼如下:
 
<html> 
<head> 
<title>測試表單提交</title> 
</head> 
<body> 
<form action="" method="post"> 
名字:<input type="text" value="test" /><br/> 
密碼: <input type="text" value="hahaha" /><br/> 
QQ: <input type="text" value="961412" /><br/> 
住址: <input type="text" value="zhejiang" /><br/> 
電話: <input type="text" value="123456789" /><br/> 
性別: <input type="radio" value="1" checked>男 <input type="radio" value="2">女<br/> 
<button type="submit" value=""> commit</button> 
</form> 
</body> 
</html> 
<?php 
if ($_POST) { 
echo '<pre/>'; 
var_export($_POST); 
} 
?> 
新聞熱點
疑難解答