Hi There,
Just testing some php forms that im writing and was wondering if it was possible to display all variable that had been posted/sent to a .php script?
I.e. if i had a form in submit.html which posted it's results to results.php is there a way to display all the variables that had been posted simply for development/bug testing?
Many thanks!
Mark
just use print_r($HTTP_POST_VARS);
eventually echo '<PRE>'; print_r($HTTP_POST_VARS); echo '</PRE>';
you can use print_r() for any variable. for obects is really interesting.
need PHP4.
otherway, use phpinfo(); it will give you POSTed vars, also.
PM
you can try with, $HTTP_POST_VARS['nameOfThePostedVaariable']
hope this meets ur requirement -Soni