i am getting following error while running the code
any help
if(!$subcurpass){
$form->setError($field, "* Current Password not entered");
}
else{
$subcurpass = stripslashes($subcurpass);
if(strlen($subcurpass) < 4
!eregi("^([0-9a-z])+$", ($subcurpass = trim($subcurpass)))){
$form->setError($field, "* Current Password incorrect");