-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.php
50 lines (49 loc) · 1.74 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
<div class="container-fluid">
<form action="" id="manage-register">
<input type="hidden" name="id" value="<?php echo isset($id) ? $id :'' ?>">
<input type="hidden" name="event_id" value="<?php echo isset($_GET['event_id']) ? $_GET['event_id'] :'' ?>">
<div class="form-group">
<label for="" class="control-label">Full Name</label>
<input type="text" class="form-control" name="name" value="<?php echo isset($name) ? $name :'' ?>" required>
</div>
<div class="form-group">
<label for="" class="control-label">Address</label>
<textarea cols="30" rows = "2" required="" name="address" class="form-control"><?php echo isset($address) ? $address :'' ?></textarea>
</div>
<div class="form-group">
<label for="" class="control-label">Email</label>
<input type="email" class="form-control" name="email" value="<?php echo isset($email) ? $email :'' ?>" required>
</div>
<div class="form-group">
<label for="" class="control-label">Contact #</label>
<input type="text" class="form-control" name="contact" value="<?php echo isset($contact) ? $contact :'' ?>" required>
</div>
</form>
</div>
<script>
$('.datetimepicker').datetimepicker({
format:'Y/m/d H:i',
startDate: '+3d'
})
$('#manage-register').submit(function(e){
e.preventDefault()
start_load()
$('#msg').html('')
$.ajax({
url:'admin/ajax.php?action=save_register',
data: new FormData($(this)[0]),
cache: false,
contentType: false,
processData: false,
method: 'POST',
type: 'POST',
success:function(resp){
if(resp==1){
alert_toast("Registration Request Sent.",'success')
end_load()
uni_modal("","register_msg.php")
}
}
})
})
</script>