Connect to itunes lost password Iphone?

Some guy gave my iphone wrong passwords and I got worried it might get locked out. So how do I sync on itunes so that incase i forget it I will be able to get it back.

You write your password down, and put it in your sock drawer. Always give a non Apple email address as your restore password address that you have access to and who's password you can't forget (as you have it written down as well). In fact you should be writing down all your passwords and patterns.