Limit Number of Characters in Message
Posted: Fri Apr 01, 2011 4:28 am
Script URL:
Version of script: 2.2
Hosting company: GoDaddy
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: limit
Write your message below:
I want to limit the number of characters that customers type in the Message box when submitting a ticket. I tried a solution I found in this forum (topic: "How To Stop People From Breaking Message Limit"), but it seems to have no effect - no error received if I exceed the limit.
In the submit_ticket.php file, I placed the following code below
"$question = hesk_input($_POST['question']);", then made the next IF statement, for "empty($question)", an elseif statement (just in case). What am I doing wrong here?
Thank you!
Version of script: 2.2
Hosting company: GoDaddy
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: limit
Write your message below:
I want to limit the number of characters that customers type in the Message box when submitting a ticket. I tried a solution I found in this forum (topic: "How To Stop People From Breaking Message Limit"), but it seems to have no effect - no error received if I exceed the limit.
In the submit_ticket.php file, I placed the following code below
"$question = hesk_input($_POST['question']);", then made the next IF statement, for "empty($question)", an elseif statement (just in case). What am I doing wrong here?
Code: Select all
if (strlen($question) > 300)
{
hesk_error('Your message is too long, limit it to 300 chars.');
}