forked from shubhamnautiyal/Internship_thdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax.php
50 lines (38 loc) · 983 Bytes
/
ajax.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
<?php
require_once 'functions.php';
if (isset($_POST["action"]))
{
switch ($_POST["action"])
{
case 'events': $status=events();
print json_encode($status);
break;
case 'guest_details': $status=guest_details();
print json_encode($status);
break;
case 'update_details': update_details();
break;
case 'requests': $status=requests();
print json_encode($status);
break;
case 'showallguests': rsvp();
break;
case 'transferguests': submit_requests();
break;
case 'rsvpconfirm': rsvpconfirm();
break;
case 'allevents': showallevents();
break;
case 'reject': reject_guest();
break;
case 'edit_event': extract_event_data();
break;
case 'update_event': update_event_data();
break;
case 'delete_event': delete_event();
break;
default: echo "Invalid";
break;
}
}
?>