Question: how to connect your iphone to wifi with another iphone?
Answer: Make sure that your device (the one sharing the password) is unlocked and connected to the Wi-Fi network.
Select the Wi-Fi network on the device you want to connect.
On your device, tap Share Password, then tap Done.