Question: what to do if your iphone is disabled but you know the password?
Answer: If you don't know the iPhone passcode, you have to wipe the iPhone clean and it will erase all data using recovery mode. The instructions on resetting a forgotten iPhone passcode are here. If you made a backup to iTunes or iCloud, you can restore it after the fact to that backup.