Page 1 of 1

PHP Link is not responding

Posted: Mon Nov 09, 2009 10:24 pm
by chanduonly
Dear Friends,
This is chandu from india.I had problem with my code.I had given $action == 'add' with if statement.but it is not responding .Can any one helpme.I am ging the code below.

$action=hesk_input($_REQUEST['a']) or $action='start';
if ($action == 'start') {print_start();}
elseif ($action == 'add') {print_add_ticket();}
elseif ($action == 'forgot_tid') {forgot_tid();}
else {hesk_error($hesklang['invalid_action']);}

Regards
Chandu

Re: PHP Link is not responding

Posted: Mon Nov 09, 2009 10:30 pm
by superdezign
Hove you tried echoing $action to be sure it is what you think it is?
If so, and $action is equal to add, then the problem is in print_add_ticket(). You have not provided this code.

Re: PHP Link is not responding

Posted: Mon Nov 09, 2009 10:35 pm
by chanduonly
Hello friend,
Please help me to solve this problem.