I'd like to write a generic php script to handle all the forms on a website, so it picks up all the variable names and values passed by a form. Is this possible?
Julia
I think so...
while( list($k, $v) = each($HTTP_POST_VARS) ) { $array[$k] = $v; }
If you just want to view the form variables and their values, try:
print("<pre>"); var_dump($_POST); print("</pre>");
Make sure to use $GET instead of $POST if that is the form method.
or use $_REQUEST[] to get both POST and GET (as well as COOKIES).