Is there a way I can store user data into a variable

He posted a doc with sample code.