Need Help with send.php file please

Discussion in 'PHP' started by wrmineo, Sep 19, 2006.

  1. #1
    My webhost sent the following email and request:

    How do I correct or modify to protect against this?

    Isn't that what this is?
    }
    elseif(!ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
         print "   <h3	>Sorry the email address you entered looks like it's invalid.</h3>";
    }
    HTML:
    Help! :(

    Thanks ;)
     
    wrmineo, Sep 19, 2006 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No, that line just checks to see if the email address looks like an email address. You likely need to check your script to ensure it is hardened against Email Injection attacks. You can find instructions for how to do this at this PHP Email Injection Attacks page.
     
    tflight, Sep 19, 2006 IP