Free PHP Contact Form with Spam Protection

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

  1. EdwinGills

    EdwinGills New Member

    hey again, I've tried setting the $from address as the email I used to sign up for the web space but still am not receiving anything, I've tried setting the address to just a standard email such as my googlemail/hotmail and still get nothing, is there anything else I could be doing wrong or which could be blocking the emails?
  2. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    Please check with your server people if they need some special settings in using PHP mail or whether they require SMTP authentication.
  3. radiant_luv

    radiant_luv New Member

    Hi Vishal,

    Thanks for sharing. It's really a great form.

    I m kinda newbie having a trouble integrating the form in a html page.

    i wanted to include "contact-form.php" in a HTML page. is it possible?

    This is the code i used in contact.html. but doesn't works.
  4. radiant_luv

    radiant_luv New Member

    radiant_luv: This message is pending approval.

    Update. I am able to get the form in a specific position on the footer.
    But I do not need the subject field. How do i make sure script doesnt show up the field as well as doesn't try to verify the field.

    Thanks
  5. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    radiant_luv: Update. I am able to get the form in a specific position on the footer.
    But I do not need the subject field. How do i make sure script doesnt show up the field as well as doesn't try to verify the field.
    If you know PHP, you should be able to do it.

    Please read the below post on how to remove validation:
    Free PHP Contact Form with Spam Protection - Page 6
  6. rockmeamadeus

    rockmeamadeus New Member

    Vishal P. Rao
    Maybe you already answered this...but I am wondering how you keep my email from being harvested by spambots.

    I checked the source code on the demo code, and there was no email visible...but that may be because its a demo?
  7. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    rockmeamadeus: Maybe you already answered this...but I am wondering how you keep my email from being harvested by spambots.

    I checked the source code on the demo code, and there was no email visible...but that may be because its a demo?
    You already answered your question. If the email is not visible in the source code(HTML), it means spambots cannot harvest it. The email will be present in the server side PHP file.
  8. rockmeamadeus

    rockmeamadeus New Member

    Vishal P. Rao
    Thank you!

    By the way, in the new Chrome browser, when I click "reply" to any forum thread, it doesn't take me to bottom of page...it just sits there.

    Had to figure out that the reply box is at bottom....

    thanks!
  9. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    rockmeamadeus: By the way, in the new Chrome browser, when I click "reply" to any forum thread, it doesn't take me to bottom of page...it just sits there.
    Must be a browser issue as it works for me both in FF and IE.
  10. michaelkwan

    michaelkwan New Member

    Hi Vishal,

    First up, major thanks for this post and for your support here in the forums! Oh, and thanks for the forum itself too [​IMG]

    In a nutshell, I'm learning bits and pieces of web coding as I add more pages to my company's website. I'm trying to get a contact form to work so I can avoid the potential spambots and all, so this thread is a huge boost.

    Right now I'm copypasting most of my code from various sources online and editing via trial-and-error, just so you know.

    Anyway I've tried to integrate your php with my html without much success, would appreciate if you (or any other kind coders out there) could help me with this.

    I've loaded your php scripts into a single folder, and my html page is in a different folder. It uses the HTML attribute and posts it to the contact-form.php file. I haven't linked all the names between the and the php as I'm tackling one problem at a time (while learning from it).

    Currently my problem is that the captcha just doesn't work. When I type in the captcha, it reports as an incorrect entry. Do check it out at www.thundermatch.com.my/corporate/contactus.html

    Any idea how can I fix this? I can post my code here but it's quite long, would you like an email attachment or something?

    Much appreciated.

    -Michael-
  11. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    You cannot include contact form file into a HTML page. It is not designed to work that way. You can either access the form page directly or include the form file into another PHP page.
  12. michaelkwan

    michaelkwan New Member

    Yea I thought so. Your PHP file seems quite different from the one I was previously referring to (http://www.kirupa.com/web/php_contact_form.htm), I previously thought that PHP was only the processing part of a webpage.

    Essentially if I want to integrate the contact form with my HTML I'll have to use a different script altogether? I know you do customisation as well, how much would you charge for this?

    Thanks!
  13. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    michaelkwan: Essentially if I want to integrate the contact form with my HTML I'll have to use a different script altogether? I know you do customisation as well, how much would you charge for this?
    I can do that for $15. Please got to http://www.easyphpcontactform.com/
  14. michaelkwan

    michaelkwan New Member

    Hi Vishal,

    I hope you don't mind, but I've already solved the problem as I'm on a tight deadline to complete the work. Finally fine-tuned it today actually.

    Am replying here out of respect for your work so you don't get left hanging unknown; wanna let you know that I think what you're doing here is great for people like me, wish you the very best for your forum and everything.

    Cheers
    Michael
  15. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    No problem at all Michael. Cheers [​IMG]
  16. gregc

    gregc New Member

    Hi Vishal,

    Code works a treat!
    I want to display the contact form on my html home page.
    What script/html should i use for this please?
    Thank you
  17. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    I'm afraid, the only option is to use IFRAMES for integrating the form in a HTML page.
  18. danygirl

    danygirl New Member

    Hello,

    My name is Daniela. I am new to this php world but I want to open a site for my bussines and I want to include a contact form . Can you please explain to me how to set up this form and how can I uploaded on in my ftp . I use filezilla .

    Thanks,

    Dany
  19. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    The instructions are in the form package.
  20. robster2

    robster2 New Member

    Hi and thanks for a great script..

    I really need to add some fields.. anyone have some hints??

Share This Page