copy of code
I could not attach .php page so I copied the code and created a text file. Please let me know if this helps.
P.S. I took a look at my database and the information IS being added, just no confirmation page or e-mail being sent.