Well, I figured out my problem, and I know this
problably is the wrong alias but may some one else
know a work around or it might be helpful to some one else.
 I found a neat little javascript that checks the length
 of a form field:
 var postmaxchars = 3999;
function validate(theform) {
        if (theform.reply.value=="") {
                alert("Please complete the message field.");
                return false; }
        if (postmaxchars != 0) {
                if (theform.reply.value.length > 3999) {
alert("Reduce your message to 3999 characters. It is currently " + theform.reply
..value.length + " characters long.");
                        return false; }
                else { return true; }
        } else { return true; }
}
function checklength(theform) {
        if (postmaxchars != 0) { message = "The maximum permitted length is 3999
 characters."; }
        else { message = ""; }
        alert("Your message is "+theform.reply.value.length+" characters long."+
message);
}

The only problem is it counts carriage returns as 1 character
where as perl length() counts them as 2. And DBI automatically
considers anything over 4000 as a LONG.
Any javascript experts out there?

Reply via email to