Return to Snippet

Revision: 19378
at May 4, 2010 11:10 by BFTrick


Updated Code
$html = "";
foreach($_REQUEST as $vn=>$vv) {
    if(preg_match("/^[a-zA-Z]/",$vn) && $vn != "B1" && $vv != "") {
        $html .= str_replace('_',' ',$vn) . " : $vv
";
    }// end if
}// end foreach

Revision: 19377
at October 22, 2009 11:18 by BFTrick


Updated Code
$html = "";
foreach($_REQUEST as $vn=>$vv) {
    if(preg_match("/^[A-Z]/",$vn) && $vn != "B1" && $vv != "") {
        $html .= str_replace('_',' ',$vn) . " : $vv
";
    }// end if
}// end foreach

Revision: 19376
at October 22, 2009 11:15 by BFTrick


Initial Code
$html = "";
foreach($_REQUEST as $vn=>$vv) {
    if(preg_match("/^[A-Z]/",$vn) && $vn != "B1" && $vv != "") {
        $html .= str_replace('_',' ',$vn) . " : $vv<br/><br/>";
    }// end if
}// end foreach

Initial URL


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

Initial Title
Print all Posted Variables

Initial Tags
email, post

Initial Language
PHP