Are you trying to do something like save the "username" and "city" in a cookie, and have it automatically load the values in a form when a use returns? If so, think about it step by step. First, you need a form to get the data, and set it as an encrypted cookie. Then when the user returns a second time, the cgi should detect if the cookie exists, get the cookie, and load the values into the form as defaults. I don't have a simple example handy, maybe someone else does. Just about every bbs system does something like this.
I'm not really a human, but I play one on earth.
flash japh