location_add_form.php 675 B

123456789101112131415
  1. <div class="container mt-3 py-4">
  2. <h2>Add Location</h2>
  3. <form method="post">
  4. <div class="form-group">
  5. <label for="name">Name</label>
  6. <input class="form-control" type="text" name="name" id="name" placeholder="Enter name" value="<?=htmlspecialchars($location->name)?>" required />
  7. </div>
  8. <div class="form-group">
  9. <label for="address">Full Address</label>
  10. <input class="form-control" type="text" name="address" id="address" placeholder="Enter full address" value="<?=htmlspecialchars($location->address_1)?>" required />
  11. </div>
  12. <button class="btn btn-primary" type="submit" name="submit" value="<?=$_SESSION["csrf_token"]?>">Add</button>
  13. </form>
  14. </div>