Work at Home Forum - An online community of those who work from home.
Web Design and Hosting Work at Home Forum / Web Design and Hosting /

Free PHP Contact Form with Spam Protection

Author Message
risington
Forums Member
Joined: 17 Apr 2011
Posts: 2
#161 · Posted: 17 Apr 2011 11:35


Hey Vishal!
Great contact form, I must say.

Would it be posible to change the titles of the different fields? I have a local business i Norway, and the whole web contents are in Norwegian.
The 'Name', 'Subject' and so on needs to be written in Norwegian.

How do I do that?

Thanks!

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#162 · Posted: 17 Apr 2011 23:36


Yes you can! Just change in contact-config.php:

$name = array('Name','name',NULL,NULL);

to:

$name = array('AnyThing','name',NULL,NULL);

Same with other fields.

__________________
risington
Forums Member
Joined: 17 Apr 2011
Posts: 2
#163 · Posted: 18 Apr 2011 05:19


Wow! Thanks! Very well appreciated, man

Keep up the great work!

molly4130
Forums Member
Joined: 29 Apr 2011
Posts: 1
#164 · Posted: 29 Apr 2011 10:48


Hi Vishal,

First, thanks so much for the contact form!

One issue, though, I cannot figure out how to change the height of the div "formContainer"--I've successfully made changes to the width of it (in pixels) but for some reason changes to the height (again in pixels) in the contact-config file do not seem to have any effect on the formContainer div (which consistently appears at 485px).

Thanks again! Molly

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#165 · Posted: 29 Apr 2011 23:32


Hi Molly,

I just tried changing the height and it works. Remember, you cannot reduce the height (unless you reduce the font size and form text boxes). You also cannot increase the height if the parent element that encloses the form has a fixed height or has some restrictions.

__________________
signorm68
Forums Member
Joined: 10 Nov 2009
Posts: 11
#166 · Posted: 10 Jun 2011 08:26


I like EasyPHPContactForm. But for newcomers who don;t have any expirience and need contact or mail list form maybe is also good solution to try free forms in cloud, because they have some tool that allow you to create, publish and host your form on their server in just few clicks. Just my 2 cents

[Post edited - Admin]

__________________
http://makemoney101.howdotodo.com - FREE real Guide to make money
Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#167 · Posted: 11 Jun 2011 00:45


While it's true that people with no experience might experience little difficulty in installing the form (I do offer installation help), I feel hosted forms are much like having your possessions on others' properties. I would feel much more comfortable having the form on my own website than on some other website.

__________________
signorm68
Forums Member
Joined: 10 Nov 2009
Posts: 11
#168 · Posted: 11 Jun 2011 10:01


Vishal P. Rao:
I would feel much more comfortable having the form on my own website than on some other website

me too. But for people who are not professionals, who have 1 site or blog hosted solution may be better than own forms...

__________________
http://makemoney101.howdotodo.com - FREE real Guide to make money
joesnow
Forums Member
Joined: 13 Jun 2011
Posts: 2
#169 · Posted: 13 Jun 2011 07:39


Hi Vishal

Thanks for the forms you have helped me a great deal. All working fine except the $thank_you_url variable.

It doesn't matter what format I enter it in I get the same response. The webpage shows this error after I click submit

Warning: Cannot modify header information - headers already sent by (output started at /home/sejjkco1/public_html/contact_us.php:6) in /home/sejjkco1/public_html/contact.php on line 133

On line 133 of the contact.php file it is

header("Location: $thank_you_url");

In the contact-config.php file I have

$thank_you_message = <<<EOD
<!-- Start message -->
<p><strong>We have received your message. If required, we'll get back to you as soon as possible.</strong></p>
<!-- End message -->
EOD;

/* URL to be redirected to after the form is submitted. If this is specified,
* then the above message will not be shown and user will be redirected to this
* page after the form is submitted. */

$thank_you_url = 'www.sejjk.com';


Any help is greatly appreciated.
Joe

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#170 · Posted: 14 Jun 2011 07:24


Please check:
http://www.easyphpcontactform.com/manual.html

You need to add:

<?php session_start(); ?>

at the very beginning of the file where you are including the form and set:

$use_header_footer

to: TRUE

$use_header_footer = TRUE;

__________________
joesnow
Forums Member
Joined: 13 Jun 2011
Posts: 2
#171 · Posted: 14 Jun 2011 11:54


Thanks for the reply vishal and I have done what you have said but it is still not working.

I am not using the header or footer php files as I have added the code to my own webpage.

At the top of my webpage I already have the <?php session_start(); ?> text in there.

All is working fine and once I have submitted the form it diplays the $thank_you_message. I only get a problem if I enter the url of the page I want to go to. In this case it is my home page.

Many Thanks
Joe

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#172 · Posted: 15 Jun 2011 00:48 · Edited by: Vishal P. Rao


joesnow:
I am not using the header or footer php files as I have added the code to my own webpage.

To use the redirect feature (to a thank you page), you need to use the header/footer, else you'll get error.

From the manual:

The limitation of this method (Method I) is that you can only display a confirmation message and not redirect to any specific thank you page you may have. If you would rather access the contact form as a separate page, skip to Method II.

__________________
moxtasy
Forums Member
Joined: 30 Jun 2011
Posts: 1
#173 · Posted: 30 Jun 2011 18:25


Hi Vishal,

Thanks so much for this form!

I have a little problem. When I have a "-" character in the subject or name field, after I send the message, the mail appear as sent but I have nothing in my inbox or bulk. Can you help me solve the problem?
Otherwise everything works perfectly.

Thanks a lot.

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#174 · Posted: 1 Jul 2011 01:47


moxtasy:
I have a little problem. When I have a "-" character in the subject or name field, after I send the message, the mail appear as sent but I have nothing in my inbox or bulk. Can you help me solve the problem?

It could be a server issue as I tried using that on my test form and it seems to work. Just try setting up a different email address and check again.

__________________
wuyounger
Forums Member
Joined: 21 Nov 2011
Posts: 1
#175 · Posted: 21 Nov 2011 09:13 · Edited by: wuyounger


Hi Thanks for your contact form and I have successfully setup on my webpage but I when i test the contact form on web server and I always got " SMTP ERRPR Could not authenciate"

$to = '[email protected]';

$smtp_host = 'smtp.gmail.com';

$smtp_port = '25';

$smtp_username = '[email protected]';

$smtp_password = 'xy';


the username and key are what i am using now and it should be correct

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#176 · Posted: 22 Nov 2011 04:49


If it's giving "SMTP ERROR Could not authenciate" then it's not script problem but authentication problem. Please check Gmail settings.

__________________
PeterFrosen
Forums Member
Joined: 19 Jul 2011
Posts: 130
#177 · Posted: 30 Nov 2011 20:16


I use an FS contact form plugin on Wordpress and works wonders.

__________________
The Online Training that Changed My Life Forever Try It For FREE
praneeth
Forums Member
Joined: 1 Dec 2011
Posts: 1
#178 · Posted: 1 Dec 2011 00:11


hi guys,,, i need to add some input fields in joomla contact form....

can anybody help me ...

Thanx

__________________
praneeth
c_nordheim
Forums Member
Joined: 7 Dec 2011
Posts: 4
#179 · Posted: 7 Dec 2011 06:53


Vishal,
I am testing your Easy PHP Contact Form (Captcha) installed with method I and it looks great! But after pressing submit I get the following message:

"Could not instantiate mail function. Mailer Error: Could not instantiate mail function.

We have received your message. If required, we'll get back to you as soon as possible."

As you can see it is an error message combined with the confirmation of a successfull message.

I do not receive any message in my inbox.

I am hosted by godaddy and I am using a hotmail address in the $to = '[email protected]'; part. Could that be part of the problem?

I would love to get this to work because the form looks good.

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1354
#180 · Posted: 8 Dec 2011 01:20


c_nordheim:
I am hosted by godaddy and I am using a hotmail address in the $to = '[email protected]'; part. Could that be part of the problem?

Godaddy, I believe have PHP Sendmail turned off. Try using the SMTP Authentication version, if they have provided you with SMTP servers. Alternatively, you can also try putting your hosting account email address in the $from field.

Would appreciate if you could post your results.

__________________
Your Reply
   :) ;) :-( ... Disable smilies

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.
Messages not conforming to the forum rules will not be approved or, deleted without any explanation.
Please do not post email addresses. If essential, obfuscate them (user [at] domain.com or something like that).
Please do not apply BOLD to entire post.
Please do not post Titles in all CAPS.
 


Page loading time (secs): 0.042

Custom Search
Member Ranking · Terms of Use · Privacy Policy · About Us · Contact Us · Support Us · Friends

© 2004-2011 Work at Home Forum. All rights reserved.