I used the following code to get variable sent via a form but now I am wondering if I can get the variable names too so I can display it nicely in an email.

PHP Code:
<?php
    
if (isset($submit)) {
        foreach(
$_POST as $i) {
            print 
"$i<br>";
        }
    }
?>
-Matt