Read the whole thread and the one in the MySQL forum, Felgall. He isn't really talking about JS global variables, at all. He just wants persistent storage of user input.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.