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
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 18 Aug 2009 00:43
Reply 


Please send me a temp FTP access to your server. Without that, it's almost impossible to guess what's going wrong.

__________________
luisnino
Member


Joined: 20 Aug 2009
Posts: 1

# Posted: 20 Aug 2009 13:05
Reply 


Hi, I was trying to use your code, but I got stuck on the CAPTCHA, it doesn't show any images for the code.

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 21 Aug 2009 00:37
Reply 


Please contact me with your form url and also a temp ftp access to your server.

__________________
qwerty
Member


Joined: 23 Aug 2009
Posts: 1

# Posted: 23 Aug 2009 23:31
Reply 


Hi Vishal,

Thank you so much for the form. I've been looking for a secure PHP Contact Form for awhile now.

I am new to PHP and the form was easy enough to install. However, I received the following error when trying to submit the form.

Warning: mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in D:\Hosting\4798486\html\contact-form.php on line 178

After clicking the "submit" button, the resulting message displays OK - "We have received your message. If required, we'll get back to you as soon as possible." But the data never gets sent to my email address.

Also, I'm trying to customize it by adding more fields (drop down list and checkbox) and also making some (instead of all) of the fields required. Can you please tell me how I can go about this?

I appreciate any help you can provide.

Thanks.

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 24 Aug 2009 02:05
Reply 


I have sent you an email. Regarding customizations, unless you have a knowledge of PHP, it can be difficult. The form was designed to be able to suffice the requirements of majority of webmasters. If you need any customizations, please contact me.

__________________
raynbo
Member


Joined: 26 Aug 2009
Posts: 1

# Posted: 26 Aug 2009 11:51 · Edited by: raynbo
Reply 


Hi,
I think the Contact Form is great, just what I need but I am getting an error
Notice: Undefined index: error_message in \user\htdocs\contact\contact-form.php on line 189can you help please?
I have tried to resolve this but am a beginner and am getting nowhere - I did notice that line 152 has two =
if ($error == 1) {

sandalwood
Member


Joined: 27 Aug 2009
Posts: 1

# Posted: 27 Aug 2009 13:00
Reply 


Hi Vishal

Is there a step-by-step instruction to tell me how to add your progam to my website so that a simpleton and not very experienced computer user like me can understand. I've built my site that I coded with HTML and CSS and I don't know how to get a visitor contact form that is safe into place that my webhost can process -- I assume they will have the PHP necessary.

Any help will be appreciated, Thanks, Jim R.

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 28 Aug 2009 00:55
Reply 


Hi Jim,

I have provided the step-by-step instructions in the readme file. However, in simple words, all you need to do is:

1. Edit few variables in the contact-form.php file.

2. Change the form-header.php and form-footer.php file to suit your site layout/design.

3. Upload all the files to your server (either in root or a sub-directory).

4. To access the form, use visit: http://www.yourdomain.com/path_to/contact-form.php

__________________
ulfmyr
Member


Joined: 2 Sep 2009
Posts: 1

# Posted: 2 Sep 2009 05:58
Reply 


Hi!
Thanks for a great form. Easy to install and customize...
Think I have customized to much though

I cant get the script to recognize the code when I submit. I´ve done this site for a friend at www.medveten.org, but just cant get it to work.

I can email you the FTP settings.

Hope to get some help!

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 3 Sep 2009 05:01
Reply 


ulfmyr: Please send me the FTP settings.

__________________
jpgvmm
Member


Joined: 8 Sep 2009
Posts: 1

# Posted: 8 Sep 2009 20:40
Reply 


Hi,

How do I add drop down list so I can choose for example If I send the message to Person 1, Person 2, Person 3 or Person 4?

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 9 Sep 2009 01:12
Reply 


jpgvmm:
How do I add drop down list so I can choose for example If I send the message to Person 1, Person 2, Person 3 or Person 4?

Please contact me.

__________________
blackwebguy
Member


Joined: 10 Sep 2009
Posts: 2

# Posted: 10 Sep 2009 10:34
Reply 


Hello, I insert the code into and html page and modified a few things like the width for it can fix. The code works, but after clicking on the submit button I get an error message: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/f/i/n/finedimonds/html/contact-us.php:5) in /home/content/f/i/n/finedimonds/html/securimage.php on line 422

Does anyone know what this means?

blackwebguy
Member


Joined: 10 Sep 2009
Posts: 2

# Posted: 10 Sep 2009 11:54
Reply 


I think I figured it out. I was missing the <?php session_start(); ?>

bsharke
Member


Joined: 10 Sep 2009
Posts: 1

# Posted: 10 Sep 2009 17:55
Reply 


Hi Vishal....I have downloaded your neat contact us form. Is it possible to add a telephone field and also a redirect after the thank you page is shown. They would really help me a lot and I look forward to being a participant and donor soon.

__________________
Thanks

Bill
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 11 Sep 2009 01:00
Reply 


blackwebguy:
I think I figured it out. I was missing the <?php session_start(); ?>

Cheers!

bsharke:
Is it possible to add a telephone field and also a redirect after the thank you page is shown.

Sure it's possible Bill. The form can be redirected by specifying the $thank_you_url variable.

To add an extra field, please contact me through the form at easyphpcontactform.com.

__________________
krazeejan
Member


Joined: 22 Sep 2009
Posts: 1

# Posted: 22 Sep 2009 13:26
Reply 


Hi,
For some reason, I can't get any of the captcha images to load...has this happened to anyone else?

__________________
Jan
Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 23 Sep 2009 02:23
Reply 


Please check if GD libraries with FreeType is supported by your server.

__________________
redhand
Member


Joined: 9 Oct 2009
Posts: 1

# Posted: 9 Oct 2009 15:58
Reply 


thanks for posting this -- i am just getting into building sites and yours is the only form i found that worked, is secure, and looks good! now if i can figure out how to use an image button to reset the data and for the submit function i will be very happy with the look!!

you, my friend, have put me on a solid path!!

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 10 Oct 2009 01:25 · Edited by: Vishal P. Rao
Reply 


In the contact-form.php file, instead of:

<a href="#" onclick="document.getElementById('captcha').src = 'securimage_show.php?' + Math.random(); return false">Click here if you cannot recognize the code.</a>

..use this:

<a href="#" onclick="document.getElementById('captcha').src = 'securimage_show.php?' + Math.random(); return false"><img src="path_to/image.gif" /></a>

where path_to/image.gif is the path to image file on your server which you want to use the reset Captcha.

And instead of:

<input type="submit" name="submit" value="Submit" style="border:1px solid #999;background:#E4E4E4;margin-top:5px;" />

...use this:

<input type="image" name="submit" value="Submit" src="path_to/submit.gif" alt="Submit">

Where path_to/submit.gif is the path to Submit button image.

__________________
carlitos
Member


Joined: 11 Oct 2009
Posts: 3

# Posted: 11 Oct 2009 19:09
Reply 


Hello,

can not get IP address

What can I do?

Thanks a lot

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 12 Oct 2009 00:55
Reply 


carlitos:
can not get IP address

For what?

__________________
carlitos
Member


Joined: 11 Oct 2009
Posts: 3

# Posted: 12 Oct 2009 11:49
Reply 


Vishal P. Rao:
carlitos:
can not get IP address

For what?

I don t know why but the message received from the contact form does not indicate the IP address of the sender

Cud you please check the script or tell me what is wrong?

Thank you

carlitos
Member


Joined: 11 Oct 2009
Posts: 3

# Posted: 12 Oct 2009 12:16
Reply 


carlitos:
Vishal P. Rao:
carlitos:
can not get IP address

For what?

I don t know why but the message received from the contact form does not indicate the IP address of the sender

Cud you please check the script or tell me what is wrong?

Hi there,

just got it.

Now is ok.

Thanks anyway

Thank you



dreamquest
Member


Joined: 23 Oct 2009
Posts: 2

# Posted: 23 Oct 2009 22:44
Reply 


Hi sir,

I am still getting the below error, a common one;

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/users/uks65931/html/test.com/contact-form.php:5) in /home/users/uks65931/html/test.com/securimage.php on line 422

I tried including the remedy line: <?php session_start(); ?> on contact-form.php, but it comes out with another error?
basically whichever line location i put it in, it comes out with THAT line error ?

Also there is already a <?php in the script, do i replace that or a new line? Above or below?

AHH....someone help!!!

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 24 Oct 2009 02:08
Reply 


I believe you are trying to include the contact-form.php file on another page through the PHP include function and then using the form redirection ($thank_you_url) after successful submission.

If you can send me a temp FTP access to your server, I'll be in a better position to debug that.

__________________
dreamquest
Member


Joined: 23 Oct 2009
Posts: 2

# Posted: 24 Oct 2009 22:18
Reply 


Hi there,

Some info of what i am doing:

I just copy and paste the whole script to a div inside a page, all the rest of the files to root, changed all the user info as required. I kept the original thank you note. One funny thing though, my background image has disappeared for the contact form page, but it is not important.

I tested the script, all the function works, i received all the info. on my test email account. All the image function works correctly. No problems in fact! Except the error messages above, which appears ontop of the thank you note, all i wanted is to remove the error messages.

can't i just enter some code to disable the session_start?

If this failed, i will sent you my ftp info, where do i sent to?

elbiem
Member


Joined: 19 Nov 2009
Posts: 2

# Posted: 19 Nov 2009 07:11
Reply 


Hi vishal!

Many thanks for this simple script!
2 days i searched internet for a feedback form and i found this.

See it is here http://tastehalal.com/web/feedback.php

I am facing a problem now...c form's formatting is scrambbled.
What could have happened?

Vishal P. Rao
Administrator


Joined: 23 Jun 2005
Posts: 1036

# Posted: 19 Nov 2009 23:55
Reply 


elbiem:
I am facing a problem now...c form's formatting is scrambbled.
What could have happened?

I'm currently out of station. If you can wait till Tuesday, I can send you a table based version which will work fine.

__________________
elbiem
Member


Joined: 19 Nov 2009
Posts: 2

# Posted: 20 Nov 2009 09:50
Reply 


Sure,
i will...

And please let me know how i can have a drop down menu instead of the subject box..

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.051


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.