make the contact form working
i have email contact form but this is do not work i want to get in working email sender with validation here is code of web page
here is complete code Full code in zip format now complete the form in working condition with validation
2 Answers
you can not send an email from html only as you see this is just html templete have no any php files so you have to make your own php file to send the email
you should make a php file such as ajax.php and go to js/ajax-functions.js in line 28 change it to your file url: "ajax.php"and it should be some thing like this $name = $_POST['name']; $msg = $_POST['msg']; $ashv = $_POST['ashv']; $email = $_POST['email']; $header = "from: $name <$mail_from>"; // Enter your email address $to ='[email protected]'; //check the 2 + 2 if($ashv = 4){ $send_contact=mail($to,'email from '.$name,$msg,$header); if($send_contact){ echo "We've recived your contact information"; }else { echo "ERROR"; } } Posted: MacOS 1 of 1 people found this answer helpful. Did you? Yes No
Hi, I don't see html form-tag in your code. You need an action attribute to submit the values to. Either use onclick event to submit an ajax request or add form tag with action attribute and then it will work.
Posted: wu_tommy 2 of 2 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved
ok that's the html now where the php that will used to send the e-mail
September 22, 2011
Any particular reason you have two versions of jQuery?
September 22, 2011