So I have designed a contact form for my webpage so that users can email me directly from the webpage. I have the html in contact.html and the PHP code in contactForm.php if the user succesfully inputs his/hers information and the email is sent I want the user to be redirected to thanks.html. I have tried to test it out but it just wont work. Where do i put my php file? Do I have to change anything on cPanel or GoDaddy? The code is below...
Here is a link to a php form script I rewrote for you: http://pastebin.com/w14MSrcL
Replace your contactForm.php codes with this and you're good to go.
Keep this file in the same directory where your html file is in.