Since it's a POSTed form, you can also use the $_POST array ($HTTP_POST_VARS for older PHP versions).
PHP Code:
foreach ($_POST as $variable => $value) {
// $variable would be 'test1', 'test2', 'test3', 'test4' etc.
// And $value would be whatever the user entered in the form
}
Use print_r() to see exactly what the $_POST array contains, and see how it can be useful:
PHP Code:
print_r($_POST);