foreach ($_POST as $key => $value) {
if ( $key != submit )
{
$values.="$key=$value<br>";
eval("$$key = '$value';");
}
}
This few lines of code is quite handy and powerful, it automatically creates variables of all POST values except (submit). Change the "$key != submit" part on line 2 to whatever the name of your submit button is.
Also keep in mind the name of the variables will be the exact case and spelling as you have them on your form. This is not the best idea ofr the long-term but a great way for testing and doing mockups of various systems.
php, assign, variables, submit, foreach, _post, quot, br, eval, automatically, creates, spelling, ofr, mockups, various,