vozzek Posted January 4, 2008 Share Posted January 4, 2008 Hi everyone, Can someone tell me the command to print out all variables posted to a particular php page? Specifically, PayPal is returning me to my 'success.php' page and I'd like to know exactly which variables are being passed/posted back to me (and more importantly, which ones are not). I thought I knew this a few weeks ago, but can't find it anywhere. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/84487-solved-10-second-question/ Share on other sites More sharing options...
marcus Posted January 4, 2008 Share Posted January 4, 2008 <?php foreach($_POST AS $key->$val){ echo $key . " has the value of " . $val . "<br>\n"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/84487-solved-10-second-question/#findComment-430431 Share on other sites More sharing options...
vozzek Posted January 4, 2008 Author Share Posted January 4, 2008 That totally rocks, thank you! Quote Link to comment https://forums.phpfreaks.com/topic/84487-solved-10-second-question/#findComment-430432 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.