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
QuarkZ
Member


Joined: 23 May 2009
Posts: 1

# Posted: 23 May 2009 17:34
Reply 


Hi Vishal!

Thank you for this great contact form, it's great to have something secured especially when it's for a business website.
However, it is possible to add a dropdown subject and a redirection after the form is submitted?

Thank you

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 24 May 2009 00:56
Reply 


Sure it is possible. Please contact me for any customizations.

__________________
Bell Lodge
Member


Joined: 12 Jun 2009
Posts: 1

# Posted: 12 Jun 2009 09:10
Reply 


I Do would like to say thanks for the form..

What a great way to get yourself out there..

I'm hoping that you are able to add a couple of things to personalise the form for my website.. I have contacted you as requested

Many Thanks

Rick

shawn9
Member


Joined: 14 Jun 2009
Posts: 2

# Posted: 14 Jun 2009 01:30
Reply 


hello, love the form, it's working for me but i do get an error after hitting submit. the error appears if the message sends successfully and if you enter the verification image incorrectly.

but i do receive the message in my email without any problems, regardless of this error. but if this error could get removed it would be much more efficient.

here is the url where the form is located: http://www.mlservers.net/web_design/

this is a new website i am developing, so there are still some dead links.

the error is:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hufrt/public_html/web_design/index.php:5) in /home/hufrt/public_html/web_design/securimage.php on line 422

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 15 Jun 2009 02:26
Reply 


Hi Shawn,

Please include the below line at the very top in your index.php file:

<?php session_start(); ?>

Let me know if that has solved your problem.

__________________
shawn9
Member


Joined: 14 Jun 2009
Posts: 2

# Posted: 17 Jun 2009 19:55
Reply 


thank you sir, it appears that resolved the error.

dude12go8
Member


Joined: 29 Jun 2009
Posts: 1

# Posted: 29 Jun 2009 08:00
Reply 


Hey Vishal. I am having a hard time accessing your script on my server it says:

Forbidden

You don't have permission to access /PHPContactForm/contact-form.php/ on this server.


Josh

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 30 Jun 2009 00:36
Reply 


Josh,

Please check the permissions of the script. It should be 0755.

__________________
sohndesigns
Member


Joined: 30 Jun 2009
Posts: 1

# Posted: 30 Jun 2009 18:55
Reply 


Can one of the fields be set to not be required?

__________________
SDS
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 1 Jul 2009 00:32
Reply 


sohndesigns:
Can one of the fields be set to not be required?

Yes you can. Just contact me.

__________________
kallisto
Member


Joined: 11 Jul 2009
Posts: 1

# Posted: 11 Jul 2009 03:02
Reply 


Hi Vishal,

I am a beginner at php and I have just finished my first website. My contact form is very different in the design. When I go to test my contact form, I get a new window with your form. Is there a way to get my form to work with your php file since it looks so different from yours? Here's the site I'm working try to get to work in case you have a spare moment. I'd really appreciate any help or pointers.

http://www.huenemebeachfest.org/contact.html

Thank you,
Martie

cauverysoft
Member


Joined: 11 Jul 2009
Posts: 1

# Posted: 11 Jul 2009 19:57
Reply 


Vishal,

Great Job. Keep up the good work. I have used your source as a starting point and I have built to my own project requirements. Appreciate your sharing your knowledge.

One Errata I found:

There is an additiona "</div>" in your contact-form.php that caused my stylesheets to be completely mis-interpreted by the browser.

Thanks again.

Regards,
CauverySoft Team, India.

bokivaol
Member


Joined: 12 Jul 2009
Posts: 1

# Posted: 12 Jul 2009 12:00 · Edited by: bokivaol
Reply 


Hi. I have uploaded as you explain and everything works great except I don't receive any email. I have changed this $to = 'youremail@email.com'; to my email address and $subject_prefix = 'My Website Contact';, but it does not work. My mails was yahoo and gmail maybe that was the problem, I don't know. Can you help me please?

__________________
If you have to win, you mast not to lose.
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 13 Jul 2009 07:07
Reply 


bokivaol:
Hi. I have uploaded as you explain and everything works great except I don't receive any email. I have changed this $to = 'youremail@email.com'; to my email address and $subject_prefix = 'My Website Contact';, but it does not work. My mails was yahoo and gmail maybe that was the problem, I don't know. Can you help me please?

Please check with your hosting people to see if there are any restrictions in PHP mail function.

__________________
adrianp918
Member


Joined: 19 Jul 2009
Posts: 2

# Posted: 19 Jul 2009 12:34
Reply 


Vishal,

I was wondering if you would be able to add a few fields to this contact form for me, if you would i would be in your debt for a life-time thank you so much for a great form

Alien911
Member


Joined: 22 Jul 2009
Posts: 1

# Posted: 22 Jul 2009 23:11
Reply 


Hey, thanks for the script! I was wondering if it is possible to add form type "file" in order to upload and mail image files. i need my users to mail me 3 JPEGs attached to the email. thanks in advance

__________________
Sarah Palin for VP? LMAO....
ritter458
Member


Joined: 22 Jul 2009
Posts: 1

# Posted: 23 Jul 2009 00:04
Reply 


Hello Vishal,

Thanks very much for making your PHP contact form available to everyone. I really like its design and the clean code behind it.

I was wondering, though, how I would add a drop-down list to the original form. Also, how would I modify the PHP to verify that the user had selected an item from the drop-down list?

I would appreciate any tips you could offer.

Again, thank you for a fantastic comment form!

Manfred

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 23 Jul 2009 00:42
Reply 


Alien911:
Hey, thanks for the script! I was wondering if it is possible to add form type "file" in order to upload and mail image files. i need my users to mail me 3 JPEGs attached to the email. thanks in advance

It can be done. Please contact me with the url of where your form is currently installed or you are going to install.

ritter458:
I was wondering, though, how I would add a drop-down list to the original form. Also, how would I modify the PHP to verify that the user had selected an item from the drop-down list?

Please contact me.

__________________
adrianp918
Member


Joined: 19 Jul 2009
Posts: 2

# Posted: 4 Aug 2009 09:03
Reply 


Vishal,

would you be able to add a few extra fields to your script so that way i will be able to use your script

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 5 Aug 2009 00:44
Reply 


adrianp918:
would you be able to add a few extra fields to your script so that way i will be able to use your script

Sure! Please contact me.

__________________
myckpid
Member


Joined: 11 Aug 2009
Posts: 2

# Posted: 11 Aug 2009 05:46
Reply 


Ple....... help i can not see varification code in contact form...

error "Fatal error: Call to undefined function imagecreate() in E:\IMP_Instalation\wamp\www\PHPContactForm1\securimage.php on line 482"

__________________
C.D.gothalia
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 11 Aug 2009 05:59
Reply 


Please make sure GD libraries with freetype support is installed on your server.

__________________
entropy
Member


Joined: 11 Aug 2009
Posts: 2

# Posted: 11 Aug 2009 12:52
Reply 


Hi Vishal,

Finally! A great script that's made well and easy to use! Thanks so much

I have one problem though, I can't get the captcha image to display... I'm not sure why, I'm going through secrimage.php and i see something there called ../words/words.txt I don't have this would that be the problem? Otherwise nothing comes up and I can't test if the script is working.

I hope to hear from you soon,

Thank you!

justin

myckpid
Member


Joined: 11 Aug 2009
Posts: 2

# Posted: 11 Aug 2009 16:09
Reply 


Ple.... help me i can not match my code(varification) so what to do?

error code invalid......Incorrect code

__________________
C.D.gothalia
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 12 Aug 2009 02:14
Reply 


entropy:
have one problem though, I can't get the captcha image to display...

Please make sure GD libraries with freetype support is installed on your server.

myckpid:
Ple.... help me i can not match my code(varification) so what to do?

error code invalid......Incorrect code

Please send me your form url.

__________________
lee123
Member


Joined: 12 Aug 2009
Posts: 1

# Posted: 12 Aug 2009 07:27
Reply 


Hi Vishal

I was wondering if i could add this to my page i have already done, i would like to put this in my page and keep everything else including the background its at www.anglianpattesting.com/index8.html

lee

entropy
Member


Joined: 11 Aug 2009
Posts: 2

# Posted: 12 Aug 2009 08:38
Reply 


Hey Vishal, thanks for your reply, I checked and GD libraries with freetpye support is installed. I'm using GoDaddy Linux servers and they have GD/Freetype support installed for my package.

What do you think could be wrong?

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 13 Aug 2009 00:31
Reply 


entropy:
Hey Vishal, thanks for your reply, I checked and GD libraries with freetpye support is installed. I'm using GoDaddy Linux servers and they have GD/Freetype support installed for my package.

What do you think could be wrong?

Please send me a message with exact url of your form. If I could get a temporary FTP access, it would be great.

__________________
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 13 Aug 2009 00:33
Reply 


lee123:
I was wondering if i could add this to my page i have already done, i would like to put this in my page and keep everything else including the background its at www.anglianpattesting.com/index8.html

That's possible. Another way is to leave your form as it as and add another verification step before actually sending the message. Please send contact me to discuss further.

__________________
davewest
Member


Joined: 17 Aug 2009
Posts: 1

# Posted: 17 Aug 2009 21:20
Reply 


Hi Vishal

My form is working correctly however, it doesnt redirect to the thank you url. Everything appears as it should, examples followed etc, files uploaded and accessible, but it doesnt redirect.

Any thoughts on why this might be happening?

Thanks

Your Reply
Bold Style  Italic Style  Underlined Style  Image Link  URL Link     :) ;) :-( ... Disable smilies

» Username  » Password 
Only registered users can post here. Enter your login/password correctly before posting a message, or register here 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 use BOLD to highlight entire post.
 


Page loading time (secs): 0.056


Custom Search
Show your Love

RSS feed (?)
  Add to My Yahoo! Add to Google Add to My MSN  
Subscribe and get your updates by email

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

Sitemap: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

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