|
Thanks loads for that mate, it got rid of the loop problems
However, i now have new problems.
if i run the program, i get this...
Please enter your username...
sam
Welcome sam!
Please enter your password for validation...
s am
Password length = 4
Password is fine
You have a space in your password, please remove it and try again
Password has no spaces
As you can see, it adds the last message to the end, even though there is a space. I thought i might solve this by just removing the second message and having one big message at the end.
I was wondering, how would i put the rest of my checking statements in? E.g, ive tried to insert a statement after your lines so it will check if there are capitals in the password, and it doesnt work at all.
Do you know how i would add additional statements?
Thanks for your help
Sam
|