| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
<form action="" method="post">
<div class="modal-header">
<h5 class="modal-title" id="updateModalLabel<?= $student['id']; ?>">Update Student</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="hidden" name="student_id" value="<?= $student['id']; ?>">
<div class="mb-3">
<label>Firstname</label>
<input type="text" name="first_name" class="form-control" value="<?= htmlspecialchars($student['first_name']); ?>">
</div>
<div class="mb-3">
<label>Lastname</label>
<input type="text" name="last_name" class="form-control" value="<?= htmlspecialchars($student['last_name']); ?>">
</div>
<div class="mb-3">
<label>Email</label>
<input type="email" name="email" class="form-control" value="<?= htmlspecialchars($student['email']); ?>">
</div>
<div class="mb-3">
<label>Phone</label>
<input type="number" name="phone" class="form-control" value="<?= htmlspecialchars($student['phone']); ?>">
</div>
<div class="mb-3">
<label>Class</label>
<input type="text" name="class" class="form-control" value="<?= htmlspecialchars($student['class']); ?>">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<input type="hidden" name="student_id" value="<?= $student['id']; ?>">
<button type="submit" name="update_student" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div class="container">
<div class="row">
<div class="col-md-6 mt-4">
<div class="card">
<div class="card-header">
<h2>Add Student Form</h2>
</div>
<div class="card-body">
<form action="" method="post">
<div class="mb-3">
<label>Firstname</label>
<input type="text" name="first_name" class="form-control">
</div>
<div class="mb-3">
<label>Lastname</label>
<input type="text" name="last_name" class="form-control">
</div>
<div class="mb-3">
<label>Email</label>
<input type="email" name="email" class="form-control">
</div>
<div class="mb-3">
<label>Phone</label>
<input type="number" name="phone" class="form-control">
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 193.170.70.27)
----
Manual Page -- https://php.net/manual/en/mysql-xdevapi-crudoperationbindable.bind.php
Edit -- https://main.php.net/note/edit/130339
Del: integrated -- https://main.php.net/note/delete/130339/integrated
Del: useless -- https://main.php.net/note/delete/130339/useless
Del: bad code -- https://main.php.net/note/delete/130339/bad+code
Del: spam -- https://main.php.net/note/delete/130339/spam
Del: non-english -- https://main.php.net/note/delete/130339/non-english
Del: in docs -- https://main.php.net/note/delete/130339/in+docs
Del: other reasons-- https://main.php.net/note/delete/130339
Reject -- https://main.php.net/note/reject/130339
Search -- https://main.php.net/manage/user-notes.php