-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.php
73 lines (71 loc) · 3.75 KB
/
registration.php
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php include('header.php');?>
<link rel="stylesheet" href="validation/dist/css/bootstrapValidator.css"/>
<script type="text/javascript" src="validation/dist/js/bootstrapValidator.js"></script>
<!-- =============================================== -->
<?php
include('form.php');
$frm=new formBuilder;
?>
</div>
<div class="content">
<div class="wrap">
<div class="content-top" style="min-height:300px;padding:50px">
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form action="process_registration.php" method="post" id="form1">
<div class="form-group has-feedback">
<input name="name" type="text" size="25" placeholder="Name" class="form-control"/>
<?php $frm->validate("name",array("required","label"=>"Name","regexp"=>"name")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input name="age" type="text" size="25" placeholder="Age" class="form-control"/>
<?php $frm->validate("age",array("required","label"=>"Age","regexp"=>"age")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<select name="gender" class="form-control">
<option value>Select Gender</option>
<option>Male</option>
<option>Female</option>
</select>
<?php $frm->validate("gender",array("required","label"=>"Gender")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input name="phone" type="text" size="25" placeholder="Mobile Number" class="form-control"/>
<?php $frm->validate("phone",array("required","label"=>"Mobile Number","regexp"=>"mobile")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-phone form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input name="email" type="text" size="25" placeholder="Email" class="form-control"/>
<?php $frm->validate("email",array("required","label"=>"Email","email")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input name="password" type="password" size="25" placeholder="Password" class="form-control" placeholder="Password" />
<?php $frm->validate("password",array("required","label"=>"Password","min"=>"7")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input name="cpassword" type="password" size="25" placeholder="Password" class="form-control" placeholder="Password" />
<?php $frm->validate("cpassword",array("required","label"=>"Confirm Password","min"=>"7","identical"=>"password Password")); // Validating form using form builder written in form.php ?>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="clear"></div>
</div>
<?php include('footer.php');?>
</div>
<script>
<?php $frm->applyvalidations("form1");?>
</script>