How are you intending to connect to the webpage without already having correct SSID/password in order to get a WiFi connection?
I guess you could store new values in ESP8266 flash memory using the EEPROM function (https://github.com/esp8266/Arduino/tree/master/libraries/EEPROM/examples) and read them back again during startup.