Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $post = json_decode($_POST);
- $action = $post['action'];
- switch ($action) {
- case 'action1':
- break;
- case 'action2':
- break;
- default:
- break;
- }
- echo json_encode(
- array(
- "result" => "success",
- "message" => "ok",
- )
- );
Add Comment
Please, Sign In to add comment