Changed the command handler for ticket.php to use $_POST global