if you want the user to be alerted right away this has to be done with javascript, not PHP. you can limit the number of characters in a textarea with something like:
if (document.form.textarea.length > 200) {alert ("You have exceeded the maximum allowed charaters."); return false;}