User Defined Variables

How can I have the user define a global variable via an input/ dynamic box?