Hi,
Down in the form HTML code where it says:
<? echo $first_name_input; ?>
You'd need to change it to:
<? echo $_POST["first_name_input"]; ?>
You'd want to do the same for all the form fields/variables. Later version of PHP has a different way of referencing to variables now (something to do with global variable).
Let me know if this helps.