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 here

You must sign in or sign up to purchase this item.

$4Regular Licence

$4

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$20Extended Licence

$20

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

3333 Purchases 540 Comments

Buyer Rating
12345 ( 689 ratings )
jigowatt

jigowatt

  • Has been a member for 3-4 years
  • Author had a File in an Envato Bundle
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • United Kingdom
  • Referred between 100 and 199 users
View Portfolio
Created 1 October 09
Compatible Browsers IE6, IE7, IE8, Safari 4, Safari 5, Opera
Software Version PHP 4.x, PHP 5.x
Files Included JavaScript JS, HTML, CSS, PHP
by
by
by
by
by