Let me recommend you a much easier way to solve your task. 123ContactForm, a visual form builder that I use and trust, gives you the possibility to email the form data automatically to you, as a form owner, and also to the person who filled in the form (provided that you insert an Email field inside the form, where people can enter their address to be mailed to).
You won't need to write any script, all the coding and backend for your form is handled by 123ContactForm. Can't imagine any simpler method to build your form - you basically have the form up and running in just a couple of minutes. To set your emails, go to Settings > Notifications and insert your own email address to get the data to, and also check "Send a copy of the completed form to the sender".
Let me know if I can help with everything.