I am having trouble accessing variables that were entered in a form when I am working inside a function. Anybody know a way around this?
if you have PHP 4.1.0 or higher then you should use the $_POST array which is global inside functions.
I only have version 4.0.6. Is there any other solution?
use the global keyword:
function my_function () { global $HTTP_POST_VARS; print_r ($HTTP_POST_VARS); }