don't know if i should use some kind of loop or objects, i don't even know what to call this problem in english...
i'll give you some code so u know what i mean and i'll explain what i want to do with a picture so you really understand
here's some code...(im working with python and mySQL atm)
print '(maximum of 12 characters)'
User_id = raw_input('Enter Username: ')
print 'minimum of 6 characters)'
Password = raw_input('Enter Password: ')
if len(Password) < 6:
print 'An Error occured! please Enter a Password with a minimum of 6 characters'
else:
print 'Your account have been succesfully created!'
sooo... there's nothing wrong with this simple code (maybe need some improvements but not the point right now.)
when i run it and type in a password using i.e 5 chars, it still saves it to my DB, what i want is
if len(Password) < 6:
i want it to return to the top of my script (see picture for awsome paintskills and what i mean)
sorry if it's hard to understand, but it's hard to explain when i don't understand it myself...
You may have some usefull links or something to share with me, i'm not asking for a straight answer, just want to learn.
Peace
here's the picture

New Topic/Question
Reply


MultiQuote


|