Revision: 37329
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 8, 2010 12:47 by kidmizere
Initial Code
function display_post_get() { if ($_POST) { echo "Displaying POST Variables: <br> \n"; echo "<table border=1> \n"; echo " <tr> \n"; echo " <td><b>result_name </b></td> \n "; echo " <td><b>result_val </b></td> \n "; echo " </tr> \n"; while (list($result_nme, $result_val) = each($_POST)) { echo " <tr> \n"; echo " <td> $result_nme </td> \n"; echo " <td> $result_val </td> \n"; echo " </tr> \n"; } echo "</table> \n"; } if ($_GET) { echo "Displaying GET Variables: <br> \n"; echo "<table border=1> \n"; echo " <tr> \n"; echo " <td><b>result_name </b></td> \n "; echo " <td><b>result_val </b></td> \n "; echo " </tr> \n"; while (list($result_nme, $result_val) = each($_GET)) { echo " <tr> \n"; echo " <td> $result_nme </td> \n"; echo " <td> $result_val </td> \n"; echo " </tr> \n"; } echo "</table> \n"; } } // End of display_post_get
Initial URL
Initial Description
Initial Title
PHP Display All Form Variables
Initial Tags
php, forms
Initial Language
PHP