Newbie question on local storage variables
Hello,
I'm building a very simple app for my dating site where users log in, indicate their location, and then post a message that other users can see.
I've imported a csv file of all the US Cities and states, into a collection called Cities. The user logs, in, searches their city, then either creates a post or views posts. My plan is that when user makes a post, one of the columns in the Posts collection will be CityID. That way, when users want to view other people's posts for their city, they indicate what city they're in, and the 'View Posts' page runs a service that queries all posts that have that CityId. Is there a way I can use a local storage variable so that the user gets a prompt and chooses 'Brooklyn, NY', and then at the next page, when they write their post and save it, the database service that creates the row in the Posts table looks at whatever city they chose on the previous screen, and puts in the CityID?