Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    regarding one php code

    hello folks,

    i'm new member the this forum and i want to ask one question;

    i currently using form mailer script (php contact script) but i edited today form mailer php file and founded following code:

    PHP Code:
    if (eregi("^([a-z]|[0-9]|\.|-|_)+@([a-z]|[0-9]|\.|-|_)+\.([a-z]|[0-9]){2,3}$"$email$arr_vars) && 
    !
    eregi("(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)"$email$arr_vars)){ 
    what is this code? this code secure?

    sorry for bad english, but i hope you understand me..

    thanks and sincerely.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    It just checks to see if the email address enters is in valid email syntax. I am hopeless with regex though, so can't explain what it does exactly and if it's secure or not.


  •  

    Posting Permissions

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