Page 1 of 1

print passed variables ..

Posted: Mon Oct 27, 2003 4:34 pm
by tsg
Isn't there a way to print out all variables passed in a form without having to code it? Like have a page automatically print out everything that was in a form. This would be for error checking only.

Thanks,
Tim

Posted: Mon Oct 27, 2003 4:38 pm
by volka
what about

Code: Select all

print_r($_POST); // or $_GET or $_REQUEST
?

Posted: Mon Oct 27, 2003 4:40 pm
by tsg
Yes, that's it.

Thank you Volka

Tim

Posted: Mon Oct 27, 2003 7:00 pm
by JAM
Perhaps obvious, but add <pre>...</pre> tags around it for better readability...