What's wrong with this?
if((preg_match('[a-zA-Z]{1,7}+',$_POST['naam'])) and (preg_match('[^\@\#\<\>\&\*\/]+[a-zA-Z0-9]+!',$_POST['password'])))
the first regex i want a string of 1-7 long containing only alphabetic letters.
The second regex i want a string containing letters and numbers with an ! at the end.
{1,7}+
does not make sense - that would match 1-7 chars, but one or more times. So 8 chars would be fine as well etc. – Weeks