Free PHP Contact Form with Spam Protection

Discussion in 'Web Design and Hosting' started by Vishal P. Rao, Mar 13, 2009.

  1. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    baliwebdesign: Hi Vishal, is there any auto responder feature?
    Can you please explain what exactly you mean by an auto responder feature?
     
  2. baliwebdesign

    baliwebdesign New Member

    beside sending us the message, an automated email are also sending to the guest with different template and text like thank you for filling the contact form..
     
  3. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    baliwebdesign: beside sending us the message, an automated email are also sending to the guest with different template and text like thank you for filling the contact form..
    Sure it can be done! Send me an email if you are interested.
     
  4. fare123

    fare123 New Member

    Hi Vishal,

    I have one question regarding your contact form, I was wondering is it possible for script to long on to the server, because my server does not allow for a script to send e-mail with out have a username and password to log on to server?
     
  5. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    It doesn't have this feature by default but it can be customized.
     
  6. fare123

    fare123 New Member

    Thanx for this info.... again I have question how it can be modified?
     
  7. quincho

    quincho New Member

    Hi Vishal,

    Thanks for sharing your contact form. I tried loading all six of the files on my root page and changed only the things you mentioned, but it didn't work. It gave me an HTTP 500 internal server error.
    Most likely causes:
    ???The website is under maintenance.
    ???The website has a programming error.

    Am I doing something really wrong?
     
  8. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    Please try again. There was a typo in the code and I just updated it.
     
  9. rakototobodo

    rakototobodo New Member

    Vishal, here is a problem with cyrillic letters. I understand that this is because of encoding but I do not know where in the script I should place something like this: Content-Type: text/plain; charset="utf-8"

    Thank you [​IMG]
     
  10. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    Just replace:

    $headers = "From: $from_value" . "\r\n";
    $headers .= "Reply-To: $email[2]" . "\r\n";

    with:

    $headers = "Content-type: text/plain; charset=utf-8" . "\r\n";
    $headers .= "From: $from_value" . "\r\n";
    $headers .= "Reply-To: $email[2]" . "\r\n";

    in contact-form.php file.
     
  11. rakototobodo

    rakototobodo New Member

    Vishal,

    This did not help and the problem still exist [​IMG]
     
  12. Revixi

    Revixi New Member

    Thank you infinitely for your solid php form and for your precious help. You are helping so many people, I hope many people will help you.

    I gave you a 5 stars at php.resourceindex.com.
     
  13. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    Revixi: I gave you a 5 stars at php.resourceindex.com.
    Thank you [​IMG]
     
  14. peps03

    peps03 New Member

    Vishal,

    I posted the previous question a little 2 quick. Excuse me.

    The real question is: How can i submit a field, including the content, without it being a required field?

    I really like this script!

    Thanks a lot!

    Greets peps
     
  15. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    peps03: How can i submit a field, including the content, without it being a required field?
    If you know PHP, you should be able to do it, else you'll have to get a customized version of the form. It's simply not possible to write down a tutorial for that.

    Cheers [​IMG]

    Vishal
     
  16. peps03

    peps03 New Member

    Thanks for the reply!

    Couldn't you make one field a not required one in your original example, i bet you would make a lot of people happy!

    I know some php, i??ve done quite some modding, this is the only thing i can??t manage.

    Thanks in advance maybe?!
     
  17. peps03

    peps03 New Member

    for the people who still want to know how to make a field not required:

    else {
    //$error = 1;
    $woonplaats[3] = '';
    }
     
  18. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    peps03: else {
    //$error = 1;
    $woonplaats[3] = '';
    }
    Great!
     
  19. EdwinGills

    EdwinGills New Member

    Hey, having real problems with every contact form I've tried, I'm sure it's not a hard problem to fix but I have no idea to go about it. Every form I've tried the emails are not received by any email client I try. I'm not sure if this is because mail() is being blocked as it's seen as spam or not.

    I've uploaded and changed the necessary fields needed in your form and as everyone else seems to have it working I'm guessing it's just my problem, and have tried sending it to my googlemail and the personalised streamline email but neither receive anything.

    any help would be appreciated.
     
  20. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    Try using the $from email address same as your hosting email address. Many hosts block emails that does not originate from the hosting account email address.
     

Share This Page