Hi there and welcome
Is this the passcode to unlock the screen on the iPad?
You will have to reset the iPhone, there is no other way to remove this.
To do the reset
Connect the phone to the computer and open itunes
Hold the power and home button down until you see
"iTunes has detected an iPhone in recovery mode..."
Click Restore Phone, let this complete and it should now work
Let me know the results please