just as ace says -
either use cookies or session
sessions are much more flexible, IMO
before ANY html input (ie before ) you must start a session
session_start();
then whenever you want to save a variable,
session_register("var");
(no $ sign)
reverse is true to session_unregister("var") a var or session_unset() all session vars.
Any $var in a session can be called simply by $var, unless you have register_globals set to off, in which case you call them by $HTTP_SESSION_VARS[$var1]
(the syntax on that may be wrong)
anyroad - have a looksie through sessions.