How to reset iphone? Reset passcode? - 1

As you know i have my friends old iphone but it has totally locked me out. Can i just erase everything? Including the password?

Try reset it when you plug it into iTunes.

Plug it in to the computer and it shoulder you restore the phone wiping out all the current apps, music, photos, etc

Plug it up to itunes and hold down the power and home button together for about five seconds and it should give you an option to restore iphone