blob: 2e92597ad612c30addbb65c16ab62b957c24cbd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?
require_once('elements/session.php');
$ticket_info = $freeside->create_ticket(array(
'session_id' => $_COOKIE['session_id'],
'requestor' => $_POST['requestor'],
'subject' => $_POST['subject'],
'message' => $_POST['message'],
));
if ( isset($ticket_info['error']) && $ticket_info['error'] ) {
$error = $ticket_info['error'];
header('Location:ticket_create.php?error='. urlencode($error));
die();
}
$ticket_id = $ticket_info['ticket_id'];
header("Location:ticket.php?".$ticket_id)
?>
|