You could try to put this directly after the <?php
if(isset($_POST)){
echo '<pre>'; print_r($_POST); echo '</pre>';
exit;
}
Then click the submit button of the form and you should see whats in the post. Check if it is correct and debug from there. If the post is still empty there is something seriously wrong with the universe.