Warning: ereg(): REG_BADBR

why i m getting error here???

Warning: ereg(): REG_BADBR

if(!ereg(“^(.){15,400}$”,$string)) {
$errormsg[1] = “- Must be more then 15 Characters & less then 400

Want to Achive:
$string is a textarea, i want the user to input atleast 15 characters
and shldnt exceed more then 400 characters!


Leave a Reply

Your email address will not be published. Required fields are marked *