AJAX Contact Form

by jigowatt

Show:

ferrowtechsays

Purchased

Many thanks! You’ve helped me to solve my biggest problem!!!

Great script, well done!!

Regards Bob

Posted 2 months ago
Author

jigowatt jigowattreplied

@ferrowtech

Great to hear :) Enjoy the script! Please rate it if you get a moment ;)

Jigowatt

Posted 2 months ago

NineSixBingsays

Purchased

i keep getting “You forgot to enter the message.” am i missing something?

Posted 2 months ago

NineSixBingsays

Purchased

your form ROCKS !! thank you for making this available! thought i had a problem, but it was a jQuery conflict. All is well.

Posted 2 months ago
Author

jigowatt jigowattreplied

Great to hear :) by all means send us a link to your finished form (themeforest[at]jigowatt.co.uk) we love to see them and might even be planning a ‘best of’ gallery ;)

Jigowatt

Posted 1 month ago

WebStormUKsays

Purchased

Is there any chance of adding check boxes and drop down menus??

Posted 2 months ago
Author

jigowatt jigowattreplied

@webstormuk

Please see our blog post for how to add / validate checkboxes on the AJAX Contact Form.

Jigowatt

Posted 28 days ago

WebStormUKsays

Purchased

Hi, forget the end part of the last message, was just wondering about check boxes?

Also if a text field or any other element for that matter is NOT required how do you enter this in the php field?

Thanks.

Posted 2 months ago
Author

jigowatt jigowattreplied

If it was a text box you’d simply pass the $_POST variable through a security check, maybe using PHP stripslashes() or similar just to remove any malicious code then pass it straight into the confirmation e-mail.

Jigowatt

Posted 1 month ago

SilverFireflysays

Purchased

I think this script fits the bill nicely for my portfolio. However there’s just one thing that is missing in my opinion and that’s a link or a redirect back to the previous page on the success page. Presently I have to click the back button which isn’t very professional in my opinion.

Posted 2 months ago
Author

jigowatt jigowattreplied

@SilverFirefly

I’m not sure why you’d need a back button? The main feature of this script is that there is no page to go back to? This form submits and animates all within one page without any reloads.

In any case, you’d add a back button like this..

echo '<a href="#" onClick="history.go(-1)">Go back to previous page.</a>'; near the end of contact.php

Jigowatt

Posted 1 month ago
Purchased

Default-user SilverFireflyreplied

The script doesn’t do that. It takes me to a success page, and yes it’s the AJAX version. Where am I going wrong?

Posted 1 month ago
Author

jigowatt jigowattreplied

@SilverFirefly

This would suggest that you’ve uploaded the Javascript files to the wrong location on your server or if you weren’t calling them properly from your website header.

Please check all the files are loading correctly and that you haven’t modified the form in anyway from the package whilst testing.

Failing that, perhaps a jQuery conflict.

Jigowatt

Posted 1 month ago

NineSixBingsays

Purchased

Hey J -

Hinewwiner recently wrote:

part and my site layout is working and the contact form is working but, if you send e-mail by cllicking Submit, a new page opens up but still works. I think jquery does not working here.

I’m having the same trouble. Do you know if either he or someone else has found a solution to this?

The form works in everything but IE, so I’m little perplexed.

Thanks

NSB

my site is here: http://seancbuilders.com/dev.php?page_id=12

Posted 2 months ago

coltgraphxsays

Purchased

Great script! I am however having problems passing checkbox values from my form over to the php so as to receive the results in my email. I have a group of checkboxes that have the same name – “services[]”. Any suggestions? Thanks!

Posted 2 months ago
Author

jigowatt jigowattreplied

Admittedly we’ve had a few people with Checkbox issues however they have resolved the issues themselves, we’re going to test it out for ourselves.

Whatever we find out (code additions etc..) we’ll write a quick ‘How To’ blog post…. rest assured it’s on our to do lists however we’re super busy at the moment so bare with us!

Jigowatt

Posted 1 month ago

NineSixBingsays

Purchased

j- i’m getting this on my server? your thoughts?

Notice: Undefined variable: error in /var/www/vhosts/site.com/httpdocs/wp-content/themes/newtheme/form/contact.php on line 43

thanks for the great form. i’ll get it dialed in…

td

Posted 1 month ago
Author

jigowatt jigowattreplied

@ninesixbing

Looking at that path your trying to integrate this with Wordpress..

Replace
jQuery(document).ready(function(){
with
jQuery(document).ready(function($){
in jquery.jigowatt.js. then also replace..
$verify   = $_POST['verify'];
with
$verify   = $_POST['verify'];
$error   = '';

in contact.php line 10. Hope this solves the issue for you :)

Jigowatt

Posted 1 month ago

NineSixBingsays

Purchased

thanks.

$verify = $_POST['verify']; with $verify = $_POST['verify']; $error = ''; in contact.php line 10

did the trick. thanks.

Posted 1 month ago

bosegasays

Purchased

Hi! Why not send a letter. When you click on button “Send” a load to send, but nothing happens.

Posted 1 month ago

seighmansays

Purchased

The text of the message appears in the header and not in the body of the email, can this be changed?

Posted 1 month ago

elmalaksays

Hi, We’ve just purchased your ajax form and the test file works just fine, however, when I tried to make it work with my form on my page, it’s driving me crazy.

I hope you don’t mind looking here and tell me what’s wrong. http://www.projectleadership.net/windows7/

the contact.php was not working on my server so I moved it to an external server, now it works but the Ajax doesn’t’.

Hope this makes sense to you.

Highly appreciated.

elmalak

Posted 1 month ago

Bakalingesays

Purchased

Hello,

For some reason, checkboxes are not working with the script. I included

<label><span class="required">&nbsp;</span> Aller retour</label> <input name="allerretour" type="checkbox" id="allerretour" value="my value" style="width: 20px;"/>

in the form, then :

allerretour: $('#allerretour').val(),

in the jquery.jigowatt.js and also :

$allerretour = $_POST['allerretour'];

in contact.php.

Whatever the checkbox is checked or unchecked, I always get the same value in the mail…

Any suggestion ?

Thanks !

LAurent

Posted 1 month ago

ianyatessays

Purchased

Fantastic – I’ve managed to alter the (very clear) functionality to accept a ColdFusion mail script and Jörn Zaefferer’s jQuery validation (just so it plugs in nicely with an existing project).

Many thanks!

Posted 1 month ago

Bakalingesays

Purchased

Hello,

chexboxname: $('#checkboxname').val(),

doesn’t work with chexboxes…

Any suggestion ?

Posted 29 days ago
Author

jigowatt jigowattreplied

@bakalinge

Please see our blog post for how to add / validate checkboxes on the AJAX Contact Form.

Jigowatt

Posted 28 days ago

Bakalingesays

Purchased
chexboxname: $('#checkboxname').is(':checked')

doesn’t work either…

Is there any support for this script ?

Posted 28 days ago
Author

jigowatt jigowattreplied

@bakalinge

Please see our blog post for how to add / validate checkboxes on the AJAX Contact Form.

Jigowatt

Posted 28 days ago

Aerendylsays

Purchased

Hello. Great script. :)

So i have a problem. I copy the html code into existing html page (custom css), put the contact.php file into the same folder, and also put the js folder and assest folder.

It looks very nice, but when i press the submit button nothing happens. What is the problem?

Posted 26 days ago

Aerendylsays

Purchased

Solved the problem. It works great! :)

Posted 26 days ago
Author

jigowatt jigowattreplied

@Aerendyl

Great to hear you solved your issue :) Just incase others have similar problems, would you mind posting how did you fixed it?

Jigowatt

Posted 22 days ago

SacredScorpionsays

Purchased

Hello, Great Contact form.

I am having a problem as well. I copied the contact form code into my existing contact.php file. I uploaded the js folder, contact.php, and assets folder into the same directory.

When I try and use the form, it gives me an error saying “You must enter your name” even though I enter a name in the text field.

Posted 22 days ago
Author

jigowatt jigowattreplied

@SacredScorpion

This sounds more like an integration problem / conflict than an issue with the script, have you uploaded the package ‘as is’ to a blank folder to test it?

Jigowatt

Posted 22 days ago

SacredScorpionsays

Purchased

Yes, I tried using “as is” and it works. When I copy the code into my existing php file it does not work. I am copying the form code from the index.html to an existing file named contact.php. Is there anything else I need to add to the existing page since it is a .php file?

Posted 22 days ago
Author

jigowatt jigowattreplied

@SacredScorpion

By renaming your contact page or the handler file your issue should be fixed, you’ll also need to change where for form posts to, for example…

<form method="post" action="your-renamed-handler-file.php" name="contactform" id="contactform">
or place the forms handler file in a higher directory… ‘form’ for example..
<form method="post" action="form/contact.php" name="contactform" id="contactform">

Jigowatt

Posted 22 days ago
Purchased

Default-user SacredScorpionreplied

okay I fixed it. The problem was that I had a div ID of “name” which I guess was messing up the form ID of “name”. Thank you so much for this script. It was simple to set up and it works great.

Sorry, I’m new to this website. Could you tell me how to rate products?

Posted 22 days ago
Author

jigowatt jigowattreplied

@SacredScorpion

Great to hear you got your problem solved :)

To rate items on CodeCanyon you need to go to your ‘Downloads’ page.. this link should work for you.. Downloads Page

Jigowatt

Posted 19 hours ago

lemonwedgesays

Purchased

Everything seems to work but when the “Email Sent Successfully” message appears I get just above (without the …..):

Notice: Array to string conversion in ......contact.php on line 29

Notice: Undefined variable: error in ......contact.php on line 43

Any ideas? Have I missed somthing?

Line 29 = if(trim($subject) '') {

Line 43 = if($error ’’) {

Posted 18 days ago
Author

jigowatt jigowattreplied

@lemonwedge

Can you confirm your hosting for us (Linux / Windows, GoDaddy / private etc.. perhaps localhost if your in testing phases?) it’s a strange error we nor anybody so far as we know has come across..

Jigowatt

Posted 6 days ago

mlaportesays

is it possible to add a file upload field?? if not, do you know of a form that does? I need a form that I can customize the size, and look, that also has a file up load component (via email).

Posted 14 days ago
Author

jigowatt jigowattreplied

@mlaporte

That is possible on pretty much any dynamic contact form, including ours. The upload part is just an input field, the behind the scenes work is the modifications you’d have to make to the handler file to process the file however you need it.

By combining a simple upload script and our AJAX Contact Form or the extended version you could pretty easily achieve what you’re after with very little effort / coding :)

Jigowatt

Posted 7 days ago

runeskisays

Purchased

Hello. Not sure if this was addressed earlier, but the readme says that there should be a corners.js file but the zip file I downloaded did not include it. Is there a reason why? Thanks. By the way, great work.

Posted 11 days ago
Author

jigowatt jigowattreplied

@runeski

That file is only a styling addition that we removed due to incompatibility with IE8 +

It only made the corners of certain boxes rounded, if you need a similar effect we highly recommend using the webkit rounded corners CSS ..

Jigowatt

Posted 7 days ago

runeskisays

Purchased

...just looked into CSS3 and discovered the border-radius feature, so disregard my previous post. My browser (Firefox), for some reason, is just not supporting it at the moment. Thanks though. I’ll figure something out.

Posted 11 days ago
Author

jigowatt jigowattreplied

@runeski

Glad to hear you got it sorted, just incase you need it.. here’s the webkit CSS we use :)

To display rounded corners on every side of the box (top left, top right, bottom left, bottom right)

-webkit-border-radius: 5px;
-moz-border-radius: 5px;

Jigowatt

Posted 10 days ago

lemonwedgesays

Purchased

Currently on windows server, I will change to Linux one and see if it makes a difference

Posted 4 days ago
Author

jigowatt jigowattreplied

@lemonwegde

I would think switching would solve your issue, with Windows, PHP works slightly differently however it’s not something I’ve worked with enough to properly help you.

Before switching let’s try and fix the issue, I’m sure it’s nothing major.

Line 10, contact.php

Change..
$verify   = $_POST['verify'];
to..
$verify   = $_POST['verify'];
$error   = '';

Jigowatt

Posted 3 days ago

robhavsays

Purchased

Just a couple of things…

1. The email sends successfully from this form, but ends up in my junkmail? 2. The subject dropdown isn’t passing the value correctly – my email is saying ‘with regards to Array’, rather than the value of the dropdown

Posted 2 days ago
Author

jigowatt jigowattreplied

@robhav

1. Are you sending it from and to yourself?

Many spam filters remove e-mails addressed from the e-mail address they are to, this is an often used spamming trick. Make the messages ‘Not Junk’ and they will then be allowed through to your mailbox. Unfortunately there’s not a lot else we can do on that note, your Junk filter is part of your e-mail client and will just need tweaking.

2. The Array issue isn’t one we’ve come across with the Select dropdown, we’ve had a similar issue with checkboxes which is solved in the Extended version, this fix is due to be included in the next AJAX Contact Form free update.

Jigowatt

Posted 19 hours ago

lemonwedgesays

Purchased

Changed to Linux server and all is working perfect. I should think it was the server I was using.

Great script 5* recommendation.

Posted 1 day ago
Author

jigowatt jigowattreplied

@lemonwedge

Great to hear, even worth a tweet :) .. Jigowatt on Twitter

Jigowatt

Posted 19 hours ago

greencodesays

Purchased

Is there any way to have a random Anti-Spam question? As opposed to the same question all of the time.

Posted 22 hours ago
Author

jigowatt jigowattreplied

@greencode

In bold at the top of the scripts description .. “Need Captcha Verification / Twitter Notification / Multiple Error Messages? Check out our New AJAX Contact Form; Extended”

The Extended version comes with a rewritten handler and includes a simple image Captcha for verification and Twitter notification for those on the move. An alternative would be to add ReCaptcha to the AJAX Contact Form you have, to do this have a look on the ReCaptcha website for installation instructions.

Jigowatt

Posted 19 hours ago

xevioussays

Purchased

Loving the Ajax contact form.

One small problem…

I’m getting the same issue as robhav.

the form sends successfully and outputs correctly in Firefox, Safari, opera and chrome.

But when I use the form in IE 8 I get the “array” message for the drop down field. Wierd one?

Thanks for the amazing script.

Posted 6 hours ago
Author

jigowatt jigowattreplied

@xevious

In true Microsoft fashion, it looks to be just an IE8 issue with how it’s handling the field from within jQuery.

To fix the issue, in your form HTML change
<select name="subject" type="text" id="subject">
</select>
to..
<select name="subject" id="subject">
</select>

We’ll also make this amendment in the next AJAX Contact Form update :)

Jigowatt

Posted 2 hours ago

$6

Prepaid customers
pay just $4 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Click Here to Deposit Price

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

12345 ( 291 ratings )

Purchase 1224 purchases

jigowatt

jigowatt

Exclusive Author Item was Featured Author was Featured Referred at least one person Helped protect Envato Marketplaces against copyright violations Sold between 10 000 and 50 000 dollars Bought between 10 and 49 items United Kingdom
File Types Included
CSS HTML JavaScript JS PHP
Item Attributes
Created 1 October 09
PHP Version 4.x, 5.x
MySQL Version N/A
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari
PHP Files Included CSS, HTML, JavaScript JS, PHP
PHP Framework N/A
Collections that include this item