Thank you for the response, but I think we might be using the term 'user' differently.
I do not mean those variables sent by the 'user' of my PHP page, but rather a list of any variables which I may have defined within the PHP script.
So, 'user variables' in a simlilar sense that this example refers to a user function:
<PRE>
barber ($type) {
print "You wanted a $type haircut, no problem";
}
call_user_func ('barber', "mushroom");
</PRE>
-Ben
chris wrote:
well, the user defined variables will be in either the $HTTP_POST_VARS or $HTTP_GET_VARS and you can just use:
foreach($HTTP_POST_VARS as $key => $val){
echo $key
}
to list all user defined variables.