-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_form.php
More file actions
29 lines (22 loc) · 918 Bytes
/
_form.php
File metadata and controls
29 lines (22 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<form method="post">
<?php if (isset($errors) and count($errors)) : ?>
<ul class="errors">
<?php foreach ($errors as $error) : ?>
<li><?php echo $error ?></li>
<?php endforeach;?>
</ul>
<?php endif ?>
<input type="hidden" name="id" value="<?php echo $_POST['id']?>" />
<label for="firstname">First Name*</label>
<input type="text" id="firstname" name="firstname" value="<?php echo $_POST['firstname'] ?>" />
<label for="lastname">Last Name*</label>
<input type="text" id="lastname" name="lastname" value="<?php echo $_POST['lastname'] ?>" />
<label for="phone">Phone*</label>
<input type="text" id="phone" name="phone" value="<?php echo $_POST['phone'] ?>" />
<label for="mobile">Mobile</label>
<input type="text" id="mobile" name="mobile" value="<?php echo $_POST['mobile'] ?>" />
<br/><br/>
<input type="submit" value="Save" />
<a href="index.php" >Cancel</a>
</form>
<em>(* Mandatory fields)</em>