So, I sometimes want to email the POST data that comes to me from any unknown source. Just for an easy way to see what fields and values were attempted to be passed.
I'm not doing too well with emailing it to me:
mail("myemail@me.com","post vars",'<pre>'.print_r($_POST,false).'</pre>');
I've tried several variances to this, and I get the same result in the message. Just the number 1.
How can I pass:
"Array ( [field] => value [field] => value [field] => value)"
as the message?