diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-09-13 19:08:54 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-09-13 19:08:54 +0530 |
commit | 08dc058cfe1184281fef89c0c484b9e8a6b7a6b7 (patch) | |
tree | 834158194e039ef4a76a30752241089f06c87be7 /Lab04/index.html | |
parent | f8a237e363b020e876f553520329046cf813da8e (diff) |
Lab04: HTML Form Validation + Factorial
Diffstat (limited to 'Lab04/index.html')
-rw-r--r-- | Lab04/index.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Lab04/index.html b/Lab04/index.html new file mode 100644 index 0000000..f433526 --- /dev/null +++ b/Lab04/index.html @@ -0,0 +1,45 @@ +<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="style.css">
+ <title>HTML Form Creation</title>
+</head>
+<body>
+ <h1>Registration Form</h1>
+ <form action="./insert.php" method="post">
+ <label for="fname">First name:</label><br>
+ <input type="text" id="fname" name="fname" required><br>
+ <label for="lname">Last name:</label><br>
+ <input type="text" id="lname" name="lname" required><br>
+ <label for="gender">Gender:</label><br>
+ <select name="gender" id="gender">
+ <option value="male">Male</option>
+ <option value="female">Female</option>
+ <option value="other">Other</option>
+ </select>
+ <br>
+ <label for="phone">Phone Number:</label><br>
+ <input type="number" size="10" id="phone" name="phone" required><br>
+ <label for="email">Email Address:</label><br>
+ <input type="email" id="email" name="email" required><br>
+ <label for="city">City:</label><br>
+ <input id="city" name="city" required><br>
+ <br>
+ <label for="Preferred Department">Department: </label><br>
+ <input type="radio" id="it" name="department" value="IT" required>
+ <label for="it">Information Technology</label><br>
+ <input type="radio" id="cse" name="department" value="CSE" required>
+ <label for="cse">Computer Science and Engineering</label><br>
+ <input type="radio" id="mech" name="department" value="MECH" required>
+ <label for="mech">Mechanical Engineering</label><br>
+ <input type="radio" id="civil" name="department" value="CIVIL" required>
+ <label for="civil">Civil Engineering</label><br>
+ <input type="radio" id="ece" name="department" value="ECE" required>
+ <label for="ece">Electronics and Communication Engineering</label><br>
+ <br>
+ <input type="submit" value="Submit">
+ </form>
+</body>
+</html>
\ No newline at end of file |