<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>毕业表单</title>
<!-- 引入Bootstrap -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- 引入自定义样式 -->
<link rel="stylesheet" href="style.css">
</head>
<form action="welcome.php" method="post">
<body>
<div class="container">
<h1>毕业表单</h1>
<div class="form-group">
<label for="major">照片</label>
<input type="file" name="tp" >
</div>
<div class="form-group">
<label for="name">姓名</label>
<input type="text" class="form-control" name="name" placeholder="请输入你的名字">
</div>
<div class="form-group">
<label for="email">联系方式</label>
<input type="email" class="form-control" name="email" placeholder="请输入邮箱仅支持126与163邮箱" pattern="\w[-\w.+]*@(163.com|126.com)" required>
</div>
<div class="form-group">
<label for="major">联系电话</label>
<input type="text" class="form-control" name="dh" placeholder="请输入电话号码" pattern="(\(\d{3,4}\)|\d{3,4}-|\s)?\d{8}" required >
</div>
<div class="form-group">
<label for="major">留言</label>
<input type="text" class="form-control" name="ly" placeholder="感谢isdkz为提供css与html模板" required >
</div>
<input type="button" value="提交">
</form>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>
点击提交表单没反应,空着都没有反应,能改下吗 |