没什么技术含量
<!<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="hao.css">
<link rel="stylesheet" type="text/css" href="http://cdn.amazeui.org/amazeui/2.2.1/css/amazeui.min.css
">
<link rel="stylesheet" type="text/css" href="gh-buttons.css">
</head>
<body>
<form action="" method="post">
<input type="text" name="sexe" class="am-form-field am-round" placeholder="输入内容"></input>
<input type="submit" id="tijiao" class="button"></input>
</form>
<?php
if ($_POST["sexe"]=="") {
echo "<script>alert('不好耍我好不哒')</script>";
} else {
echo "<p>";
echo"先生您输入的是";
echo "</p>";
echo "<p>";
echo $_POST["sexe"];
echo "</p>";
}
?>
</body>
</html>
本文介绍了一个简单的PHP表单提交示例,通过该示例可以了解如何使用HTML创建表单并用PHP处理表单数据。当用户提交表单时,PHP会检查输入是否为空,并给出相应的反馈。
1055

被折叠的 条评论
为什么被折叠?



