How can I show a popup, then save the values the user enters to a database?