CodeCanyon

AJAX Contact Form

Trouble on GoDaddy?

Godaddy won’t post a message if its coming from gmail, aol etc, so sending it as the user won’t work.

Change:

$headers = "From: $email" . PHP_EOL;

to come from somewhere else, e.g.

$headers = "From: youraddress@godaddy.com" . PHP_EOL;

How do I do multiple recipients?

Find:
$address = "example@themeforest.net";

Replace with:

$address = "example1@themeforest.net";
$address .= ",example2@themeforest.net";
$address .= ",example3@themeforest.net";

How do I add and validate checkboxes?

Take a look at our blog post to solve this question ;)

How do I accept numbers like (300) 688-2929 ?? Right now I can only accept 3006882929 :(

Find:
} else if(!is_numeric($phone)) {
Replace with:
} else if (!preg_match('/\(?\d{3}\)?[-\s.]?\d{3}[-\s.]\d{4}/x', $phone)) {

How do I redirect them to a page after they send an email?

In jquery.jigowatt.js, find:
if(data.match('success') != null) $('#contactform').slideUp('slow');
Replace with:
if(data.match('success') != null) window.location.replace("http://google.com");

I want to remove the phone field, how?

Read our blog post to add or remove custom fields

http://jigowatt.co.uk/blog/add-custom-fields-to-the-ajax-contact-form/
by
by
by
by
by