Posted By

BFTrick on 10/22/09


Tagged

email post print request


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

scarybeast


Print all Posted Variables


 / Published in: PHP
 

This code will loop through any posted variables and print the name of the field as well as the value of the field.

  1. $html = "";
  2. foreach($_REQUEST as $vn=>$vv) {
  3. if(preg_match("/^[a-zA-Z]/",$vn) && $vn != "B1" && $vv != "") {
  4. $html .= str_replace('_',' ',$vn) . " : $vv
  5. ";
  6. }// end if
  7. }// end foreach

Report this snippet  

You need to login to post a comment.