Hi
The form posts to mailform.php which I assume this code is, and not another page.
Try putting this code at the start of the page:
foreach (array_keys($_POST) as $key)
{
$$key = $_POST[$key];
// print "POST variable $key is ${$key}<br />";
}
I have commented out the printing of the variables posted, but if you need to debug, then enable that line.
Hope this works, it does for me.
Trevor