sorry for bumping. it should be helpful:
in add_form.html
after last <script> .... </script> add
Code:
<script language="javascript" type="text/javascript">
function validateIt(f)
{
if (f.elements['description'].value.length<350)
{
alert('Description must be longer then 350 characters !!!');
return false;
}
return true;
}
</script> and a little below in <form .... > modify that line and add "onSubmit" funcion
Code:
<form action="add.php" method="post" enctype="multipart/form-data" name="add_frm" onSubmit="return validateIt(this);">