国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP フォームを検証するときに、F:\apache\Apache24\htdocs\chap01\form1.php の 21 行目に「 Notice: Unknownindex: email in F:\apache\Apache24\htdocs\chap01\form1.php」というメッセージが表示された場(chǎng)合はどうすればよいですか。
W
W 2017-11-17 12:32:48
0
2
1588

<!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>表單驗(yàn)證< ;/title>

<meta name="keywords" content="" />

<script type="text/javascript">


</script>


<style type="text/css">

</style>

</head>

<body>

<?php

$name = $email =$性別 =$comment = $website ="";


if($_SERVER["REQUEST_METHOD"] == "POST"){

$name = test_input($_POST["name"]);

$email = test_input($_POST["email"]);

$website = test_input($_POST["website"] );

$comment = test_input($_POST["comment"]);

$gender = test_input($_POST["gender"]);

}

function test_input($data){

$data = trim($data);

$data =tripslashes($data);

$data = htmlspecialchars($data);

return $data;

}

?>


< h2> php 驗(yàn)證實(shí)列</h2>

<form method="post" action ="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">

姓名:<input type="text" name ="name">

<br><br>

電郵:<input type="text " email ="email">

<br><br>

網(wǎng)址:<input type="text" website ="website">

<br><br>

評(píng)論:<input type="text" comment = "comment">

<br><br>

性別:

<input type="radio" name ="gender" vlaue ="女性">女性

<input type="radio" name ="gender" vlaue ="male">男性

<br><br>

<input type="submit" name="submit" value = "提交">

</form>


<?php

echo "<h2>您の入力:</h2> ";

echo "<br>";

echo $name;

echo "<br>";

echo $email;

echo "<br>";

echo $website;

echo "<br>";

echo $comment;

echo "<br>";

echo $gender;

?>

</body>

</html>


W
W

愿能多結(jié)交志同道合的基友!哈哈哈。。。。。

全員に返信(2)
乘易網(wǎng)絡(luò)

入力メールには名前屬性がありません。サーバーはどのように取得しますか?

最新のダウンロード
詳細(xì)>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート