-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
24 lines (22 loc) · 928 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Submit Details Form</title>
</head>
<body>
<div class="card">
<h2>Submit Details</h2>
<h3>Enter Correct Information</h3>
<form action="data.php" class="detail-form" method="post" >
<input type="text" placeholder="Name" name="name" required />
<input type="tel" placeholder="Phone Number" name="pnumber" pattern="^\d{10}" required oninvalid="this.setCustomValidity('Please enter a 10-digit phone number (e.g.8677189191)')" required/>
<input type="text" placeholder="City" name="city" required />
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>