? About the PHP Form Mailer

Hi,
This is my first post. lol. I ned some help. I want a textarea to send a certain amount of characters. And if the person using my contact form excedes the amount of characters specified (lets say 300) then it will print out an error. How would I do that? My textarea’s name is textarea.

Any help would be greatly appreciated. Thanks in advance! :stuck_out_tongue:

[color=red]~Ron[/color]


if(strlen($_POST['textarea']) > 300) {
echo "Error: please limit your content to 300 characters or less";
exit;
}

Although, I may be tempted to do this in Javascript, first, to save the load on the server…

Thanks JustJeff!

It worked beautifully

~Ron