I would like to validate some form input, and only allow the folowing:
letters, numbers, /, -
$erros = '<small>Error submitting url key!</small>';
Which is not working..
Its not the point only to allow one / or -
But only letters, numbers and /- in the desired string length wanted by the user.
I have not used preg_match, regex'es much before - so i hope someone can point this out.
What is wrong in the way I begin the pattern, and end it etc etc?
I Hope someone can make me a bit more clever on this :-)