Create Professional Secure Forms with CAPTCHA, Realtime Validation and PHP Backend
Save your time from the tedious process of building interactive AJAX forms

Back in the autumn of 2008, I have written a tutorial about how you can create a basic AJAX Contact Form that works with PHP Back-end. The post is one of the most popular here on BitRepository having over 8,000 monthly page views and over 440 comments so far.
Since many people asked me how they can do this and even hired me to offer them assistance with this application, I have decided to write a more advanced script with many features including CAPTCHA and Real-time Validation.
The script can be practically used to create any type of ajaxified, yet secure form that collects data and sends it to your email inbox including but not limited to:
- Contact/Feedback Form
- Support Form
- Customer Survey Form
- Online Product Order Form
- Event Registration Form
- Employment Form
- Make a Room Reservation Online Form
- Send Testimonial Form
- Subscribe to Newsletter Form
- Gift Order Form
See some samples of these generated forms
Some of the features you get with AJAX Form Pro
Create unlimited AJAX Forms in the same page/multiple pages
You can generate as many forms as you like and easily include them anywhere you wish. Each form has its own configuration file. For instance, you can enable the CAPTCHA for a form, while you can disable it for another form.
RealTime Validator
This makes the form completion process interactive. The errors show/hide while the user fills the form. If this feature is disabled, then all the errors will show above the form once the user clicks the submit button.
Powerful CAPTCHA: Anti-Spam Verification Image
You can use letters, numbers or both (can be enabled/disabled). The verification image can be refreshed in case the user is having trouble in recognizing the characters. While the user types the security code the script verifies it in the background. Once the user types the right characters, it automatically shows (in real-time) a successful message to the user. Unlike many AJAX CAPTCHAs out there that rely on JavaScript as an Anti-spam measure and have a medium security level, the one I have chosen to implement uses PHP to securely generate and register the required code in the background. The comparison is a case-insensitive one in order to make the filling process easier without annoying the person who fills the security code.
Auto Responder
Useful to notify your visitors that their message was successfully sent (e.g. "Your message has been successfully sent. We will reply to your inquiry within 48 hours"). For instance, it can be used while you're in vacation and let the users know that you will reply to them as soon as possible. The headers (from name, email) can be set in the configuration file.
Send Mail with Attachments
This application supports adding file attachments to the data that is sent through the AJAX Forms. You can either receive the links to the uploaded files or the actual attachments to the mail message. I'd prefer the former method, because often the mails with many attachments are automatically reported as SPAM. This "file attachment" feature is also available if you use the AJAX Form inside a Lightbox.
Fully (CSS & HTML) Customizable: Supports any form element
Easily add/remove fields, change notifications, customize the mail settings. The following fields are supported: input text boxes, textareas, single/multiple selects, checkboxes, radios. This way, you can create more complex web forms and surveys without editing any HTML code.
Turns into a simple PHP Contact Form if JavaScript is disabled
Is the visitor in that 3% of people that have
JS disabled? No worries! The form degrades gracefully into a basic non-AJAX PHP Contact Form.
Tableless
Clean Layout (uses LABELs, DIVs and Paragraphs)
Lightbox integration (Powered by Fancybox)
Display the form in a Mac-style "lightbox" that floats overtop of web page.
Modal Form with Sliding Transition (Left & Top)
Add some style to your pages by loading the forms in a fancy way
Redirect to Thank You page after Successful Submission
If you do not want to show the basic successful confirmation message, you can redirect the user to a customized thank you page
Send mails using either mail() function or through SMTP
Besides the basic mail() function, you can use the
SMTP method to send the mail. This way, chances are higher the message won't end in the JUNK/SPAM folder, especially if lot of mails are sent.
Easily send mail to multiple recipients/webmasters
You have the option to set as many recipients you want to get the mail that is sent through the forms. Each form has its recipients. For instance, one can be set to send the form information to the Marketing Department while other can be set to send the information to the Billing Department.
HTML Code Separated from the PHP Code
The script is powered by the
Smarty template which is meant to ease the process of web design by separating the (logic) PHP Code from the (output) HTML code. Beside the fact that things are kept clean, it is also easier for you to make changes to the HTML structure without touching the PHP code.
100% Source Code Available
You have the possibility to customize the script as you wish. NO encrypted or obfuscated code!
Documentation
A help page that guides you through the setup process (1. Basic Settings, 2. HTML Structure, 3. CSS Files and Structure, 4. JavaScript, 5. Sources and Credits)
Additional features include:
- 3 Layouts Available: 'Left' and 'Right' Justified Horizontal Labels, Vertical Labels, In-Field Labels (for Developer and Extended Licenses)
- The e-mail templates (message, subject) are customizable
- The errors and the notifications can be easily changed
- The script works in conjunction with other libraries beside jQuery such as MooTools or Prototype
- Set a custom subject for the mail that you receive if the subject field is removed
- "Send me a copy of the mail" feature: if activated, the user receives exactly the same mail as you get.
Server Requirements
- PHP5+
- GD Library Enabled (only if you want to use the Anti-Spam Image)
Browser Compatibility
- This script is compatible with all major browsers.
- It was tested in FireFox 3.5, IE 6, IE 7 & IE 8, Google Chrome 3.0, Opera 10, Safari 4.0, SeaMonkey 2.0, Flock 2.5.6
Is AJAX Form Pro the right script for me?
- This product is aimed to:
- Webmasters that want to improve the contact forms from their website(s)
- Web Developers that have multiple websites and need to install (contact) forms on them
- Freelance Web Developers that are looking to create interactive forms for their client(s) / website(s) / project(s)
- AJAX Form Pro is a PHP tool to build interactive forms, not just a basic Contact Form nor a WYSIWYG application.
Money Back Risk Free Trial
- I offer a 60 days money back guarantee.
- If for any reason you are not satisfied with this script you can request a refund and I will buy the script back from you. No questions asked!
To get instant access to this script right now — simply select your license type below and click your desired payment method.
Suitable for installing on a single website or intranet site project. A single license is for one domain.
Lets you install unlimited copies of the script. Unlimited license is for unlimited personal hosts (domains or sub-domains).
Includes both the developer and the
commercial license. You CAN use this script in your clients' projects. However, you DO NOT have the right to re-sell it.
Example: you are allowed to incorporate the script in a Wordpress Theme that is sold on
Themeforest.net or into a CMS you made for a client of yours.
 | | or | |  |
After checkout, you'll get immediate access to the script. Place your order right
now to get started and get all features of AJAX Form Builder.
- Licenses are lifetime
- Customer Support is offered within 24 hours
- Payments are processed through PayPal or 2Checkout
- Digital delivery is provided by E-Junkie
Customer Testimonials
"Very nice! We went through 8 different scripts, only to be frustrated with broken code, links, and tutorials, to finally find one so simple, beautiful and it works! We are avid PHP programmers, but are not yet too versed with AJAX, so this solution was perfect! Thanks" - Jared (http://www.haroldsmithbicycle.com/)
"I had a real need for a clean and stylish contact form. I tried some 11 forms before I decided on one. I have to say your form was the winning choice hands down." - Kevin Morrison (NW Interactive designs)
"It works very good and it solved the problem of needing a form validation as well a as a success message in the same page." - Rolando Martinez Barron (http://www.matamoros.com/)
"I am working a project for patisserie web site in Turkey and i used your form form this web site contact page. Belong to me, your form is very useful and successful, thanks a lot." - Kayhan Yalinkilic

Get Free Lite Version
If you’re not sure this is the right product for you, I suggest you get a lite version of this script that has some similar features. Although it will show you just a fraction of what AJAX Form Pro v2 can do, you can decide later if the upgrade to the paid version is worthy or not.
The script is available for BitRepository.com readers. Enter your details below for instant download:
244 Replies to "Create Professional Secure Forms with CAPTCHA, Realtime Validation and PHP Backend"
March 23, 2010 at 12:10 PM
Hey, i’ve been modifying this script for a little while now and I had a few questions. Ive tested the version both mine and a freshly downloaded version, and none of them seem to go to the success page after a success mail is sent. The mail sends correctly (I recieved it) but I am unable to view the success zone after the button is clicked. Any help would be great.
Awesome code, I will post a link after I fix a few bugs I ran into
April 8, 2010 at 8:46 AM
Did you manage to solve this problem? What’s the URL to the form? I could inspect it and tell you what’s wrong.
March 28, 2010 at 12:33 AM
Very nice working fine for me,
Thank you.
March 28, 2010 at 12:05 PM
Great working, very useful and thanks for the wonderful contribution.
March 29, 2010 at 2:05 AM
This contact form was amazingly simple to implement and extend. I also needed a newsletter subscription area so using most of the contact form code I was able to accomplish this very quickly. Thank you so much for your great work.
March 29, 2010 at 10:17 PM
Thank you brother, Your Contact Form is working flawlessly; i love it. appreciate your efforts in building in this wonderful app.
April 1, 2010 at 8:45 AM
Love, love the contact form. I have chosen not to use the validation for now. Check it out on my site, and send me a note from it. Thanks so much!
April 2, 2010 at 5:22 AM
I have searched for weeks looking for a mail form script to satisfy my requirements and yours does exactly what I need. I havent installed it in a web site yet so I cant comment on functionality, but I did copy the code and save it to an uploaded test page and found it to work okay.
I THANK you with deep gratitude because if it weren’t like guys like you who are willing to share your knowledge and time, novices like me (and many others) would really struggle.
So thanks again, I look forward to using the script.
April 8, 2010 at 8:44 AM
Thanks for your reply. I wanted to make a different AJAX Contact Form than the other ones that are out there and I am glad that people like you appreciate my work ;-)
April 3, 2010 at 12:13 PM
Just received your email.
thank you.
But I’ not using your form…
Cheers
April 4, 2010 at 5:01 PM
Thank you very much for providing such a wonderful contact form .
Keep it Up.
April 5, 2010 at 9:26 AM
Great script, the best I found in internet, also well working for me.. Thank You so much!
April 7, 2010 at 4:16 AM
Hi,
Thanks for contact form and email. Still I havent got time to try it.. I will definitely give review once I use it…
thanks
April 7, 2010 at 7:40 PM
Thanks gabriel, i love it. i have use it in my portfolio website http://www.zulsdesign.com
Awesome!!
April 10, 2010 at 9:09 PM
I have installed this contact form and works excelent . Keep up the good work
April 12, 2010 at 8:00 PM
thank you for the script ;)
April 15, 2010 at 10:29 PM
Gabriel,
I have been waiting to say this and now I can: “It worked like a charm!”
Thanks for the script and your continued support. I must say this has now become the best contact form available on internet. Keep up the good work!
April 16, 2010 at 7:28 AM
How do I add additional fields to the contact form? Such as:
- First name
- Last name
- Addresses
- Prefix (Mr, Ms etc.)
I would like these to show in the message part of the email. (Some might be drop-down lists, or radio boxes)
I know how to add the fields in the HTML , but I’m wondering where else along the way I should add this in – among all the PHP and JavaScript – I’m just not sure.
If you tell/show us how to do one field, I’m sure it’ll be very helpful – and we can just repeat for all others :)
April 23, 2010 at 12:34 AM
@Anatolij Antonovi? Klju?inskij: I’ve just launched a new version of the script. You have the option to add/edit/delete new fields. More info can be found in the documentation page. The script cost is just $4 and you can download it immediately after the purchase.
May 13, 2010 at 10:27 PM
Hi Gabriel
Where do I find the download for the script you mentioned in this post to:
@Anatolij Antonovi? Klju?inskij
“I’ve just launched a new version of the script. You have the option to add/edit/delete new fields. More info can be found in the documentation page. The script cost is just $4 and you can download it immediately after the purchase.”
Thank you for your help
May 13, 2010 at 10:46 PM
You can purchase the script with the license that suits you by using either PayPal or Credit Card. The item is available for download immediately after payment is completed. You can find the payment buttons in the current post: http://bit.ly/c1GR5h
July 9, 2010 at 2:27 AM
I downloded a version a few months ago, it was the premium version but there was no charge (just subscribe to the newsletter) is this a different version than the new one, I am looking to add new fields also. Thanks.
July 9, 2010 at 7:59 AM
This is an improved version, yes. You can add and remove fields dynamically. The list of the new features is available on the post page.
April 16, 2010 at 7:36 AM
Hi, I set up the form, and it’s working well – good job! And of course – THANKS! Best form on the web.
However, it seems there’s a problem with the encoding of the auto-responder email from your Premium Contact Form, when viewed in MS Office Outlook Web Access. The auto-reply (as received) can be seen below (notice the strange characters).
***
Hallo Name!
Vielen Dank für Ihre E-Mail, die wir Ihnen hiermit zunächst automatisch bestätigen.
Wir bemühen uns Ihnen schnellstmöglich eine persönliche Antwort auf Ihre Anfrage zu geben.
Bis dahin bitten wir Sie um etwas Geduld und danken Ihnen schon im Voraus für Ihr Verständnis.
Mit freundlichen Grüßen
***
My thoughts on why it’s happening:
In the common.php file, I rewrote the text into German in UTF-8, but it seems that it gets converted to Latin-1 somewhere along the way.
Do you have any ideas where? Or how to fix this?
(I’m pretty sure that what I pasted above is the HTML template email. So another question – how does the contact form decide in which form to send it in – html or non-html?)
Thanks!
April 20, 2010 at 1:24 AM
Hi Gabriel… Ajax Contact Form is working fine now… Thank you so much. now I can use it for my personal website. http://ebaligya.x10hosting.com
April 26, 2010 at 3:19 AM
I just purchased the updated form…I was already using the free form but needed to add field.
Now I am wondering if I can have 2 working forms on my website. For example I need a contact form and a quote form, can I have both functioning easily with no script conflicts on my site?
April 26, 2010 at 3:28 AM
Hi! Yes you can, I did it on my site! But you need to make a few modifications, otherwise it didn’t work in all ways.
I can let you know where – it requires some tweaking with the php settings – what is your website, and where is the form to be accessed from (url)?
if u dont want ppl to see for security reasons, u can email me privately at: terry.the.bee [at sign here] gmail.com
April 29, 2010 at 8:01 AM
Thanks for the form it’s been awesome so far.
How would I validate a checkbox or radio button? I’ve been able to add both but they don’t validate even when they’re made mandatory.
Thanks.
May 3, 2010 at 3:41 AM
i already sent it to php.net too..
this is respons for
adam at worldwrestlingmania dot cjb dot net
06-Dec-2009 04:35(here http://php.net/manual/en/function.imagettftext.php)
and for all that’s using captcha to prevent send information in a form using a robot.
People you don’t need captcha!!!! There is another convenient method , to protect a website for spamming and is much simple:
Let’s consider the 1st page(with the form) and let’s say the second … index.php and receiver.php
index.php:
———————————————————————-
index.php
A form without captcha!!!
———————————————————————-
receiver.php
———————————————————————-
<?php
//receiver.php
function protectform(){
if($_SERVER["REQUEST_METHOD"]!='GET'){
$servername=$_SERVER["SERVER_NAME"];
$noterror=true;
if (isset($_SERVER["HTTP_REFERER"]))
$gethost=Parse_url($_SERVER["HTTP_REFERER"]);
else
$noterror=false;
$pimp=false;
if (!$noterror )
$pimp=true;
if(isset($gethost))
if ($gethost['host']!==$servername)
$pimp=true;
if ($pimp){
//print_r($gethost);
die('Go away hacker!');
}
}
}
protectform();
if(isset($_REQUEST['send'])and (trim($_REQUEST['data'])!='') ) echo('We already send to this page this value: '.$_REQUEST['data'].'’); else echo(‘Please try to fill something in that form!’);
?>Return to my form
———————————————————————-
how to probe it?
well let’s say you already upload it on
http://www.example.com/myfolder/ index.php and receiver.php
so try to digit
http://www.example.com/myfolder/index.php
now fill the form’s value…and click send.
now is redirected to receiver.php and you see the right value.
Let’s probe the vulnerability of the script:
digit again
http://www.example.com/myfolder/index.php
now when you see the form press File/Save as from the browser’s menu and save it on desktop like index.html
now try to open with notepad to edit it and change this line:
to something like this:
now save it and double click it from desktop.
well what you see when you already fill that text form and you send the data to http://www.example.com/myfolder/ ?
(For php beginners:www.example.com can be http://www.banana.com too , i don’t know where you will probe this software)
to all people who said :”php is unsecure” i respond with :
I am writing scripts from 1992, my opinion like expert is : php rooooooooolez!!! people if you don’t know how to write scripts in php try php.net to learn something. me,Constantin
May 11, 2010 at 4:11 AM
Excellent and extremely fast technical support. Thanks..
May 11, 2010 at 11:17 PM
I have one little problem with the Form.
I uploaded the fresh downloaded form on a freehoster for testing purposes. (the only thing i added is my email address and name in the php file).
So I fill out the form and click on the Send button and it tells me that the mail is successfully sended, but the email never arrives in my inbox mail folder. I tried different mail services like gmail, web.de and gmx.com. but everytime the mail of the filled out form didi´nt arrive in my mail inbox folder.
I hope someone can help me.
May 12, 2010 at 9:45 PM
Tobias,
Try this on a paid hosting server, most free hosts doesn’t offer SMTP. I think thats whhy u are unable to get email.
May 20, 2010 at 3:25 AM
Awesome! I bought the form and had Gabriel modify it to my needs. He did exactly what I asked and it works great. Very clean, smooth and functional. Great support, fast and courteous. If you would like to see it, click here: http://www.deannixondesign.com/form2/ Highly Recommended.
May 21, 2010 at 5:02 AM
This script is exactly what I was looking for to match my site’s new layout! Thanks!
June 1, 2010 at 1:07 AM
Gabriel
I bought the script from you a few weeks back, but unfortunately, it is way over my head. Would you possibly do some customizing for me and direct me on getting the form working on my site?
Thank you
Sandy K
June 1, 2010 at 1:10 AM
Please give me the URL to the page from your website where the form is located. I want to check how it was installed.
June 21, 2010 at 9:22 PM
http://www.pmcicareers.com/contact_test.html
and
http://www.pmcicareers.com/page3.php
Can you please tell me what I am doing wrong?
Thank you
Sandy
June 23, 2010 at 2:14 AM
Okay, I am getting the hang of it, but…
I am only getting
Name
Email Address
IP Address and Message – the other elements are not in the Email message.
I added the additional fields to the MESSAGE BODY in common.php.
I am not sure if I need to edit parse and parse2.
I NEED HELP PLEASE SOMEONE? Thank you in advance.
you can see contact form at:
http://www.pmcicareers.com/page3.html
I want to get it right before I go live
June 23, 2010 at 3:05 AM
My advice would be to stop using IFRAMES. They are just not necessary in this case. That’s why only a part of the form is visible when you press submit. Can you tell me why did you load the form in an IFRAME? You can increase its height if you are keen to use it.
June 7, 2010 at 4:22 AM
I am trying to add a checkbox that the user has to check (to agree to terms) before filling out the form. Your documentation appears to not support check-boxes.
Shouldn’t this below just work?
June 7, 2010 at 4:24 AM
I also noticed on the main contact php, there is no provision for checkboxes.
August 19, 2010 at 4:30 AM
did you figure out how to add a checkbox in this current form?
June 9, 2010 at 3:37 PM
Hello,
This is a really good form! Just one question – could you tell me how to add a checkbox form item? I’ve tried but it doesn’t work!
Thanks
Simon
June 23, 2010 at 8:02 PM
hi
in this premium script we have
Name
E-Mail
Subject
Message
but i need to extend the list with
Phone number
address
education etc,
tell me how can i extend this
June 23, 2010 at 8:05 PM
You need to edit $formFields in common.php. Consider checking the help file. It contains instructions regarding the addition of new fields.
July 6, 2010 at 8:16 AM
Very useful tutorials, thank you Gabriel
July 15, 2010 at 12:40 AM
I’m having some problems to add a new field to the form. Follow the instructions of creating a new field on the commom.php file but then they don’t show up on the page. I changed the names…
any idea?
Thanks for an amazing code!
very helpful
July 19, 2010 at 1:44 PM
Did you manage to add new fields? If not, consider sending me the modified $formFields variable to support { at } bitrepository ( . ) com. This way I can figure out what’s the problem. I can also advice you what to do, if you did not edit it the right way.
August 12, 2010 at 12:14 PM
Patricia, please let me know what he tells you – I’m also having the same problem!
August 19, 2010 at 4:07 AM
Subject: REQUIRED FIELDS SHOWN
Before I buy this form, I’d like to know if it automatically marks required fields as such, or is it possible to do this manually?
August 19, 2010 at 4:18 AM
You can set the mandatory fields from the configuration file of this script. If you want to point out which fields are required, you can use a red star or something similar after the name of the field that is set in the configuration file. If you purchase the script and need assistance with this, I will help you ;-)
August 19, 2010 at 4:22 AM
That’s cool – so it’d just be setting some inline style, right?
What about checkboxes and radio buttons – is it possible to add these to the form?
August 19, 2010 at 4:27 AM
Yes, you can set some in-line style. The check-boxes and radio buttons can only be added manually at the moment. In the next version of the script, I will make sure that they will be easy to add just from the configuration file.
August 19, 2010 at 4:29 AM
Cool. What else is in plan for the next script? When do you think you’ll release it?
Also, I’m trying your free form just to see how it is – and it seems that the message field doesn’t support new lines and just bulks them all on one line… is there a way to disable this?
August 19, 2010 at 4:47 AM
In the next version of the script, I will add support for radios and check-boxes form elements and also the option to send mail with attachment ;-) If you purchase the current version, you will also get the updates from the new one. I am planning to release it in the beginning of September.
Regarding the new lines issue in the free script: make sure you add
$message = nl2br($message);before the line where the mail() function is used.August 19, 2010 at 5:08 AM
Thanks. Is this behavior fixed in this premium script?
August 19, 2010 at 5:16 AM
Yes, this behavior is fixed in the premium script. You’re not the first who noticed it. Therefore, I had to update the script ;-)
August 19, 2010 at 5:54 AM
Not true. For me the message show up all on one line.
I looked at the e-mail (show original) in Gmail, and it says this, maybe this is the problem:
–b1_12324….
Content-Type: text/plain; charset = “utf-8″
Content-Transfer-Encoding: 8bit
BODY_MESSSAGE_TEXT
–b1_12324….
Content-Type: text/html; charset = “utf-8″
Content-Transfer-Encoding: 8bit
Name Test just sent you a message through the contact form:
E-Mail: test@gmail.com
IP: XXX (XXX)
Line 1
Line 2
Line 4
Line 6
August 19, 2010 at 6:27 AM
Yup, just confirmed it – used your un-edited script that came in the ZIP file and it doesn’t show line breaks in Gmail, haven’t tested on others.
The code of the email is as follows – notice that the non-HTML message contents aren’t showing! Just says “BODY_MESSSAGE_TEXT
“. The form is broken :( how do we fix it?
I replaced Email and IP fields with XXX to prevent hacking etc.
CODE RECEIVED IN EMAIL BELOW:
Delivered-To: XXX@gmail.comReceived: by XXX with SMTP id XXX;
Thu, 19 Aug 2010 11:18:07 -0700 (PDT)
Received: by XXX with SMTP id XXX;
Thu, 19 Aug 2010 11:18:06 -0700 (PDT)
Return-Path:
Received: from XXX
by mx.google.com with ESMTP id XXX
Thu, 19 Aug 2010 11:18:06 -0700 (PDT)
Received-SPF: neutral (google.com: XXX is neither permitted nor denied by best guess record for domain XXX) client-ip=XXXX;
Authentication-Results: mx.google.com; spf=neutral (google.com: XXX is neither permitted nor denied by best guess record for domain of XXXX) smtp.mail=XXX
Received: by XXXX.XXXX
id XXXX; Thu, 19 Aug 2010 20:18:06 +0200 (CEST)
To: Webmaster XXXX
Subject: Billing Question
Date: Thu, 19 Aug 2010 20:18:05 +0200
From: Name
Message-ID:
X-Priority: 3
X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1_XXXX"
--b1_XXXX
Content-Type: text/plain; charset = "iso-8859-2"
Content-Transfer-Encoding: 8bit
BODY_MESSSAGE_TEXT
--b1_XXX
Content-Type: text/html; charset = "iso-8859-2"
Content-Transfer-Encoding: 8bit
Name just sent you a message through the contact form:
E-Mail: XXX
IP: XXXX
asdfasdfas
asdfasdf
asdfasdf
safasdfasdfsa
--XXXX
August 21, 2010 at 10:17 AM
Hello,
I would also be very interested in the option “sending emails with attachment”. Will it also be possible to restrict the attachment, for example only picture files?
Is it with the current version possible to customize it by myself and add an upload field?
Thanks
August 25, 2010 at 11:09 AM
Hi, here in italian we have problem with “è, ì, à, ò” when my customer send me a mail. Where can I modify the charset?
thanks
Arcibald
August 25, 2010 at 6:30 PM
Another information: in config.php file, I have
iso-8859-1
Thanks
August 25, 2010 at 6:32 PM
Sorry for the tag; repeate:
I have iso-8859-1 trought charset tags.
Arcibald
August 27, 2010 at 10:50 AM
put it as utf-8
August 27, 2010 at 11:15 AM
Very well done; perfect.
Thanxs
Arcibald
August 27, 2010 at 11:15 PM
Gabriel, I would like some help with the script – I posted my problem a few posts up. Can you please look at it? Thanks :)
September 8, 2010 at 1:21 PM
When will the new version be released? I’ve been holding off buying it for a week now since I need check boxes.
The form looks fantastic.
November 22, 2010 at 1:19 AM
@Joshua, you can get the new version of the script now. The update is free! Just use the same URL to get it. If it’s not working anymore, let me know!
September 19, 2010 at 1:45 AM
Hi, great form – but one question, how come if you make a longer form – with many fields, and then click the submit button, it doesn’t go all the way back up to the top?
Even if there’s errors up there… that way, the user doesn’t see them and looks like the form is buggy, and just leaves.
How can I make it go all the way up to the top? Is there some simple part of the JS that I can edit?
Thanks!
October 13, 2010 at 5:59 AM
@Gaisa, this is really a good idea. I will consider upgrading the script. I believe you are the first that is telling me about this. If you are familiar with JavaScript, you can use the jQuery ScrollTo Plugin to “go all the way back up to the top” after the form is submitted ;-)
November 22, 2010 at 1:21 AM
@Gaisa, I have added this feature in the new version of the script. The update is free! Consider downloading it using the same URL. If it’s not working anymore, let me know and I’ll send you a new one!
October 6, 2010 at 10:14 AM
Hi
I am using contact-app.
My website supports multi language.
How can I make contact-app support multi language.
Thanks
October 12, 2010 at 11:12 PM
Hi i am getting this error when trying to send the mail.
“The mail cannot be sent due to an internal error. Please retry later!
Could not instantiate mail function.”
Any ideas why?
October 13, 2010 at 5:38 AM
@Phil, in all the cases this is due to the server configuration. You just do not have the mail server configured properly or the mail() function is just disabled (this is usually on shared hosting). Consider testing the mail() function: http://php.net/manual/en/function.mail.php and tell me if you get any errors.
October 19, 2010 at 11:08 PM
Hi .. I’m Korean ..
It’s good form is good too .. ^ ^
But ..
In my inbox ..
Fonts are broken ..
November 9, 2010 at 11:35 AM
Hi
I have been looking around for a nice and easy mail form that has good validation and found your script after a bit of googleing and thought that it looked nice and worked well, so i bought the file and started to add it to a test site and all looked good. So i decided to test it on a live site and every time i included the files it broke the site layout. So after hours of messing about and testing (in firefox) i think i have found the problem. When you include the contact-script.php file into your page there is a closing div tag on the line – 86 section which breaks the page layout? Please correct me if im wrong as i dont think its the setup of my page as in dreamweaver it highlights this section as well. By adding a closing tag to this section its all working fine now and i just need to style it to fit my site. Shame its taken me about 4 hours to solve! If im right i hope this helps someone else to save time as its now turned into a bit more of an expensive solution. Andy
November 22, 2010 at 1:17 AM
@Andy, I’ve investigated this layout problem and indeed there was a closing
</div>tag that should not be there. The bug was removed and everything should work fine now since I’ve updated the script files. My apologize for this inconvenience! Good luck in styling the form ;-)November 15, 2010 at 12:33 AM
Hi, your script is great! I do have one question. How do you set the form so that the message is sent to multiple email addresses (multiple WEBMASTER_EMAIL)?
Thanks
November 18, 2010 at 12:34 PM
You need an AddAddress for each.
common.php
// To (here you should enter the e-mail address where you should receive the messages)
define(‘WEBMASTER_EMAIL’, ’1@1.com’);
define(‘WEBMASTERTWO_EMAIL’, ’2@2.com’);
// your name/nickname
define(‘WEBMASTER_NAME’, ’1′);
define(‘WEBMASTERTWO_NAME’, ’2′);
parse.php
$mail->AddAddress(WEBMASTER_EMAIL, WEBMASTER_NAME);
$mail->AddAddress(WEBMASTERTWO_EMAIL, WEBMASTERTWO_NAME);
November 19, 2010 at 1:52 AM
Hi, I bought the script from you. Is it possible to get the html code from the nice screenshoots you make on the top of this page so i need only to put it in my page? I’m not a programmer and it’s really difficult to understand all this stuff ;-)
Thanks a lot
November 19, 2010 at 4:11 AM
You just have to include ‘contact-script.php’ in the file where you want the form to appear in. Consider including the CSS in the HEAD section of that page (it can be contact.php). Also, the inclusion of ‘common.php’ should be made in contact.php too. You don’t really have to be a programmer to do this. I will consider adding an example page to the script package as you are not the first who is asking for such help from me. I will do my best to do it this weekend ;-)
November 20, 2010 at 11:07 AM
Thanks for the multiple email settings response Pietro. I have another question…..
1) There’s a 15 character minimum setting in the message box so how do I set a maximum?
2) Is it possible to set a little counter below the message box (run by javascript?) that will display how many characters have been typed in so far, in real-time? Thanks…jj
November 21, 2010 at 12:43 PM
Hi, I bought the Contact Form before and sincerely thanks for your hard work.
However, when I modified and upload it to my domain and test it, everything’s worked fine and the message was sent, except the form just showing “submitting” without popping up the success message.
What’s the possible issue? Hope for your fast response, thanks!
November 21, 2010 at 12:47 PM
hey i just figured out i forgot to add json.js, stupid me! :P
thanks for your great work!!! :D
November 21, 2010 at 12:49 PM
No worries, hope to get a feedback from you soon!
November 21, 2010 at 12:48 PM
Thanks for your purchase, Alvaris! Consider enabling the debug tool (set $acf_conf['debug'] to true). This way you will see the output generated by parse.php and you will be able to figure out the problem. Basically, parse.php returns more than the successful message from the AJAX query. That’s why it doesn’t return message sent, because the output is not in JSON format. Let me know what you see after you enable the debugger. Good luck ;-)
November 21, 2010 at 4:03 PM
@JJ
You should attempt to answer those ?s yourself.
i.e. limit? http://www.lmgtfy.com/?q=max+characters+in+textarea
or search the files of code you have that run the form for min_chars and extrapolate.
With the aforementioned mindset you will go far.
i.e. count? http://www.lmgtfy.com/?q=javascript+count+characters+in+textarea