Results 1 to 2 of 2

Thread: blank php email from form

  1. #1
    Join Date
    Jun 2010
    Posts
    243

    blank php email from form

    I get these e-mails that are blank, that are being sent by our contact page. how can they do this when there are required fields, and there is captcha? i thought that it was suppose to stop spam. can they view the e-mail address that it is being sent to?

  2. #2
    Join Date
    Dec 2009
    Location
    Carrollton, GA - USA
    Posts
    67
    the only field that is required is the captcha and they do make programs the automatically fills them in I would solve it by requiring some data to be present in the fields before php will submit it (ie name, email).

    There are several different ways to do this but I find the easiest way is to use an if statement like this:

    PHP Code:
    if(isset($name != "") && ($email != "") { then you function } 

Similar Threads

  1. PHP Email Form checkboxes
    By carly02 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 22 Sep 2005, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •