Users enter a folder name into a form, this name then needs to be validated. I dont seem to be able to get this to work:
Code: Select all
$pattern = "[[]]_-+";
if(!ereg($pattern, $new_cat)){
print("The category chosen has some invalid characters in the name please retype it without \"';:\/><+=)(*&^%\$£!¬.\" ");
$i++;
}Thx andy