Skip to content

Commit

Permalink
Input bugs (#38)
Browse files Browse the repository at this point in the history
* #33 show-guest-list-bug

* improved input validation
  • Loading branch information
wevekamola committed Aug 24, 2017
1 parent 6a0fcb2 commit 2897f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add_new_guest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<label for="guest_email_id" class="form-control-label">
<b>Guest Email-ID</b>
</label>
<input type="email" class="form-control" placeholder="Guest email*" name="guest_email_id" id="guest_email_id" maxlength="50" required>
<input type="email" class="form-control" placeholder="Guest email*" name="guest_email_id" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" title="e.g example@domain.com" id="guest_email_id" maxlength="50" required>
</div>
<div class="form-group col-lg-12">
<label for="guest_mobile_number" class="form-control-label">
<b>Guest Mobile Number</b>
</label>
<input type="tel" pattern="[789][0-9]{9}" class="form-control" placeholder="Guest mobile number*" name="guest_mobile_number" id="guest_mobile_number" maxlength="10" required>
<input type="tel" pattern="[0-9][0-9]{9}" title="Mobile Number should only contain 10 numerical digits. e.g 9876543210" class="form-control" placeholder="Guest mobile number*" name="guest_mobile_number" id="guest_mobile_number" maxlength="10" required>
</div>
<div class="form-group col-lg-12">
<label for="guest_gender" class="form-control-label">
Expand Down

0 comments on commit 2897f03

Please sign in to comment.