Changing WIFI network

But how would the raspberry pi get the new network name and password? I want to understand :slight_smile:)