<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< ;html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>表单验证</title>
="<meta http-equility Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content=" " />
<script type="text/javascript">
</script>
<style type="text/css"> gaya>
</kepala>
<badan>
<?php
$nama = $email =$jantina =$komen = $tapak web ="";
["REQUEST_METHOD"] == "POST"){
$name = test_input($_POST["name"]);
$email = test_input($_POST["email"]);
$website = test_input ($_POST["laman web"]);
$comment = test_input($_POST["komen"]);
$jantina = test_input($_POST["jantina"]);
}
(fungsi test_input $data){
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
pulangkan $data;
}
}
;<?php
echo "<h2>您的输入为:</h2>";
echo "<br>";
;br>";
echo $emel;
gema "<br>";
echo $laman web;
echo "<br>";
echo $comment;
echo "<br>";
$gender>
</body>
</html>
E-mel input tidak mempunyai atribut nama Bagaimana pelayan mendapatkannya?