- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>2022EBCS085</title>
- <style>
- body {
- font-family: 'Helvetica', Arial, sans-serif;
- background-color: #f4f4f9;
- padding: 20px;
- display: flex;
- justify-content: center; /* Centers the form on the page */
- flex-direction: column; /* Aligns items vertically */
- align-items: center;
- }
- h2 {
- color: #333;
- margin-bottom: 10px; /* Reduces space below the header */
- }
- form {
- background-color: #fff;
- padding: 20px;
- margin-bottom: 20px; /* Adds space between forms */
- border-radius: 8px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
- width: 100%;
- max-width: 480px; /* Restricting form width */
- }
- label {
- font-weight: bold;
- display: block;
- margin: 10px 0 5px;
- }
- input[type="text"],
- input[type="date"],
- input[type="email"],
- input[type="tel"],
- select,
- textarea {
- width: 100%;
- padding: 8px;
- margin-bottom: 10px; /* Adjusts spacing to make forms shorter */
- border: 1px solid #ccc;
- border-radius: 4px;
- }
- input[type="radio"] {
- margin-right: 5px;
- }
- .gender-labels {
- display: inline-block;
- margin-right: 20px;
- }
- input[type="submit"] {
- background-color: #4CAF50;
- color: white;
- border: none;
- padding: 10px 20px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- cursor: pointer;
- border-radius: 4px;
- }
- </style>
- </head>
- <body>
- <h2>Create or Update Student Details</h2>
- <form action="process_form.php" method="post">
- <label for="name">Name:</label>
- <input type="text" id="name" name="name" required>
- <label for="student_id_create">Student ID:</label>
- <input type="text" id="student_id_create" name="student_id" required>
- <label for="dob">Date of Birth:</label>
- <input type="date" id="dob" name="dob" required>
- <label>Gender:</label>
- <div>
- <label class="gender-labels"><input type="radio" name="gender" value="Male" required> Male</label>
- <label class="gender-labels"><input type="radio" name="gender" value="Female"> Female</label>
- <label class="gender-labels"><input type="radio" name="gender" value="Other"> Other</label>
- </div>
- <label for="address">Address:</label>
- <textarea id="address" name="address" required></textarea>
- <label for="mobile">Mobile Number:</label>
- <input type="tel" id="mobile" name="mobile" pattern="[0-9]{10}" required>
- <label for="email">Email ID:</label>
- <input type="email" id="email" name="email" required>
- <label for="department">Department:</label>
- <input type="text" id="department" name="department" required>
- <input type="submit" name="create" value="Submit">
- <input type="submit" name="update" value="Update">
- <p><b>Note:</b> Please enter a valid student ID before clicking on "Update" to modify existing details.</p>
- </form>
- <h2>Get Student Details By Student ID</h2>
- <form action="process_form.php" method="GET">
- <label for="student_id_get">Student ID:</label>
- <input type="text" id="student_id_get" name="student_id" required>
- <input type="submit" name="student_by_id" value="Submit">
- </form>
- <h2>Get All Students</h2>
- <form action="process_form.php" method="GET">
- <input type="submit" name="all_students" value="Get All Students">
- </form>
- <h2>Delete Student By Student ID</h2>
- <form action="process_form.php" method="POST">
- <label for="student_id_delete">Student ID:</label>
- <input type="text" id="student_id_delete" name="student_id" required>
- <input type="submit" name="delete" value="Submit">
- </form>
- </body>
- </html>
[text] frf
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: