hey thanks cire... I'm still getting a error message on my "std::isalpha" saying; "Error: no instance of function template "std::isalpha" matches the argument list."
There are a number of things wrong with your incomplete source code.
The major problems: 1) The declaration ("prototype") of isValidName() is incorrect. 2) You don't actually check the return value of isValidName() so it appears as if the function has no effect.
Finally, since you're using elements of C++11 anyway, I suggest that you check out the regex library (it may not be implemented for GCC/MinGW compilers yet, but it is available for Visual Studio 2013). http://www.cplusplus.com/reference/regex/
You'll have to validate telno and the other variables too, not just the name, and the regex library is exactly what you want.
al-right thanks Catfish666. i guess i was getting ahead of myself a bit there thanks for the help I'm looking into what you suggested... much appreciated.