Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: email validation in php

  1. #11
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    I posted earlier that this code stops someone from entering an email address with more than one consecutive full-stop, ie fred.blogs@him.com is OK, fred..blogs@him.com would fail

  2. #12
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Wink

    that cool..
    thank you!

    Edit: and does anyone know how to get sender i.p address?

  3. #13
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    It is possible to get the IP address using this code.

    PHP Code:
    $ip $_SERVER['HTTP_CLIENT_IP']; 
    You do need to be careful however, in some countries storing a persons IP address or using it for identification purposes, is illegal.

    I think Germany is one such country.

  4. #14
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by forum_amnesiac View Post
    It is possible to get the IP address using this code.

    PHP Code:
    $ip $_SERVER['HTTP_CLIENT_IP']; 
    You do need to be careful however, in some countries storing a persons IP address or using it for identification purposes, is illegal.

    I think Germany is one such country.

    hmmm its not getting the ip..

  5. #15
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    This link shows a bit more about this, it shows a function and how to use it.

    http://andrewgatenby.com/getting-a-visitors-ip-address

Bookmarks

Posting Permissions

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