Jump to content

Need help making a simple contact form functional


brandin

Recommended Posts

The template only decides what the form looks like, not how it works. You need some PHP code to send the mail. Either PHP, or some other server-side language.

 

W3Schools has a section about sending mail with PHP here: http://www.w3schools.com/php/php_ref_mail.asp You should already underatand PHP forms, superglobals and other features.

Link to comment
Share on other sites

i see that you got it to work! Goodjob

 

you can use :

header('Location: http://www.example.com/');
exit;

intead of

echo "Thank you for contacting us! Please use your browser's back button to return to the previous page."; 

so the user gets redirected automaticly .

Edited by john_jack
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...