Hi there!
My problem is very simple:-)
I want to use spaces in a string. I have used ereg function, but i have no idea how I should define if spaces are allowed in the string.
I have this code:
if (!ereg("[A-Za-z0-9_.-]{5,40}$",$title) || !ereg("[A-Za-z]",$title)) {
If the title variable has any spaces, i get an error message...
Pleae if anybody knows how that should be modified to accept spaces, please write me here.
Thanks in advance!