Have an account? Sign in
Login  Register  Facebook
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
Started: September 22, 2011 Latest Activity: September 22, 2011 contact email form

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

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
In: September 22, 2011

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
In: September 22, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer