Home / Scripts & Code / PHP Scripts / Forms
PHP Captcha & AJAX Contact FormPHP Captcha & AJAX Contact Form
PHP Captcha & Ajax Contact Form is mainly for business oriented Template. It's very easy to place on any HTML or PHP pageHome / Scripts & Code / PHP Scripts / Forms
PHP Captcha & AJAX Contact Form
PHP Captcha & Ajax Contact Form is mainly for business oriented Template. It's very easy...6 Support questions or comments
Please login or create an account to post a question or comment.
-
Jun 1, 2015swatibobade Purchasedthank you so much sir...
My contact form work very well
-
Jun 5, 2015kennyjac AuthorGreat Swatibobade. ^^
-
May 30, 2015swatibobade Purchased1) Thanks for reply i change of javascript files. It works
it show all ajax errors. captcha works fine. Form is also submitted in email.
but also shows a below php error message.
Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a1776444/public_html/class/email.class.php on line 100
You can show here http://dummysite.comuv.com/Pre-registrationContact.php
2) My another question is how to remove Attachment form field in php-captcha-ajax-contact-form.
i just want name,email,phone,subject,message and captcha
Actually i don't want that field in form. Is it possible easily or its to much difficult....
Thanks and regards
swati bobade
-
May 31, 2015kennyjac AuthorHi Swati bobade,
1) the warning is show is because the open_basedir setting is primarily used to prevent PHP scripts for a particular user from accessing files in another user's account. So usually, any files in your own account is readable by your own scripts. so in order to upload the attachment to your folder you need to open permission. But from your question 2 you want to disabled the attachment function so leave it and proceed to question 2.
2) I have send you my contact.php and ajax_submit.php. I have comment out the attachment function in this two files try compare with yours file and comment those line as i do.
Hope your contact form is working nicely. ^^
Best Regards
-
May 30, 2015swatibobade PurchasedDear sir,
Please check the following link.
http://dummysite.comuv.com/Pre-registrationContact.php
i upload a contact form in my site but it not works
- it not shows errors
- Captcha works wrong
Form send in emailid- with name, message, phone no
it not send image
Please help me -
May 30, 2015kennyjac AuthorHi Swatibobade,
I have check the contact form on your site.
The problem mainly is cause by the path you call javascript file inside your Pre-registrationContact.php after you implement.
open up the code inside registrationContact.php file and check the javascript file and stylesheet file path. and compare the path whether is correctly place in your hosting file manager.
If you still have problem do not hesitate to leave a comment
Regards
-
May 30, 2015swatibobade PurchasedDear sir,
My contact form is running very well.
but i am not getting the complete information in the mail
i just want like this
Name: swati
Email: [email protected]
Phone:9022987570
Subject:Tech support
Messgae:Test Message
Attachment:
For this i have to change
line no. 61 $mail->Body = $msg . " " . $phone;
but not understand what i change.
Thank you so much.
Please reply me
-
May 30, 2015kennyjac AuthorHi Swatibobade,
Good to know that it running well.
For getting the complete information in the mail, yes you need to have a change in line no.61.
It just simple HTML code. Can you paste your HTML code for me here so that i can help you what is going wrong.
Regards
-
May 29, 2015swatibobade PurchasedThank you so much sir for your reply....
i am very happy to see your reply.
i made all changes above.
But still, form not goes to email.
it shows.....
invalid email address
ERROR! Message cannot be send out. Please try again!
Actually i don't know smtp password (smtp concept)
I use this following address
My email-id is [email protected]
and i use password sacXXXnu
i use regular username and password of gmail account.
Is it ok? or what?
i use above in line no 35.
$mail->isSMTP(); // SET MAILER TO USE SMTP
$mail->Host = 'smtp.gmail.com'; // SPECIFY MAIN AND BACKUP SERVERS
$mail->SMTPAuth = true; // ENABLE SMTP AUTHENTICATION
$mail->Username = '[email protected]'; // SMTP USERNAME
$mail->Password = "sachinanu"; // SMTP PASSWORD
$mail->SMTPSecure = 'tls'; // ENABLE ENCRYPTION 'ssl' ALSO ACCEPTED
$mail->Port = 587;
My another question is-- can i use only emailid to send form in email.
Actually i want to run this code in my website.
I upload a My website on godaddy.com
there i also create a email account with company name.it is [email protected]
it is not gmail account.
so that....
please tell me.... How u do?
i am newbie in php.
Thank you so much. I am waiting for reply.
-
May 29, 2015swatibobade PurchasedI am newbie.
I am not able to send a form to email.
Yesterday i buy this code. but i am unable to send email
First make change in ajax_sumbit.php
i change email with my email address [email protected].
Then i upload a complete file to below link...
http://technica.webuda.com/contact.php
it shows me errors.
Please help me.
-
May 29, 2015kennyjac AuthorHi Swatibobade,
Thanks for purchased. i able to reproduce the error you have. The reason is because the hierarchy of your files which you using 000webhost.
for solving this error go to ajax_submit.php file
change to below code:
line2: include("./class/class.phpmailer.php");
line3: include("./class/class.smtp.php");
line4: include("./class/email.class.php");
line10: $my_mail->upload_dir ="./images/";
Then you are good to go. If you still have problem do not hesitate to leave a comment -
May 29, 2015swatibobade PurchasedThank you so much sir for your reply....
i am very happy to see your reply.
i made all changes above.
But still, form not goes to email.
it shows.....
invalid email address
ERROR! Message cannot be send out. Please try again!
Actually i don't know smtp password (smtp concept)
I use this following address
My email-id is [email protected]
and i use password sacXXXnu
i use regular username and password of gmail account.
Is it ok? or what?
i use above in line no 35.
$mail->isSMTP(); // SET MAILER TO USE SMTP
$mail->Host = 'smtp.gmail.com'; // SPECIFY MAIN AND BACKUP SERVERS
$mail->SMTPAuth = true; // ENABLE SMTP AUTHENTICATION
$mail->Username = '[email protected]'; // SMTP USERNAME
$mail->Password = "sachinanu"; // SMTP PASSWORD
$mail->SMTPSecure = 'tls'; // ENABLE ENCRYPTION 'ssl' ALSO ACCEPTED
$mail->Port = 587;
My another question is-- can i use only emailid to send form in email.
Actually i want to run this code in my website.
I upload a My website on godaddy.com
there i also create a email account with company name.it is [email protected]
it is not gmail account.
so that....
please tell me.... How u do?
i am newbie in php.
Thank you so much. I am waiting for reply.
-
May 30, 2015kennyjac AuthorHi Swatibobade,
i try on using 000webhost which is a free hosting is working fine.
if you are using smtp concept there are few things to consider:
i) make sure remove this line /* REMOVE TO USE GMAIL OR THIRD PARTY SMTP
ii) make sure remove this line REMOVE TO USE GMAIL OR THIRD PARTY SMTP */
iii) smtp password is your gmail account password.
iv) your gmail account do not request further verification like phone verification code in order to access your gmail.
If you don't want to using smtp you can direct put your emailid in this line of code :
i) $mail->addAddress('[email protected]', 'Admin Contact Form');
You can try put your own emailid other than gmail account. But not every emailid will work as i'm using yahoo i received Undelivered Mail Returened to Sender.
you can try go to my link and try it http://kjcode.netai.net/contact_form/
It recommend to use gmail and i have send you the ajax_submit.php file to your gmail account.
Regards
Information
Category | Scripts & Code / PHP Scripts / Forms |
First release | 28 March 2015 |
Last update | 28 March 2015 |