Remove the "action" attribute of your forms. That will make it automatically post to itself, which is where your code to process the form submission is located.
The action page is the only page that will get the form data. Your form currently posts to the main page and it doesn't have any of the insert or email code on it.