Many of our templates come with a simple, .php-driven form. It's not very complicated and you can set up a contact form in just a few minutes. It's just a matter of putting the pieces together.
There is one crucial part of the form coding that is missing. That is the "action" that the form will take once the submit button is clicked. Form-to-email scripts will vary, although in theory they are much alike.
While the form looks complete, it is not active since it is not tied to any form-to-email script. If you click on the Submit button, you will receive a notice that the form has been disabled. This is a simple Javascript "Alert".
In our templates that contain forms, we have implemented a very basic contact form based on the above coding. Your visitors can fill out the form and you will receive the results by email. In order to receive the results, you will need to edit a few lines on the send_form_email.php script (located in the javascripts folder) to set your email address where the form results should be sent and to set a subject line for the emails.
Once the form has been submitted, you can redirect the user to your "thankyou.html" page. On the php script, near the bottom of the page, you will need to set the absolute file path to your Thank You page:
Special Note: While most web hosts support PHP5, there may be an instance where your web host does not. In these cases, they will usually offer their own form-to-email scripts. Generally, the form on the contact page does not need to be changed, but you will need to change the "action" portion to point to the script that processes the form. You will need to contact your web host for technical details.