Results 1 to 9 of 9

Thread: Restrict user email on registration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2

    Default

    Code:
     $email = $_POST['email'];
    $email = parse_url($email);
    $email = $email['host']
    
    if ($email == "yahoo.com" || $email == "hotmail.com"){
    
    echo "The administrator has chosen not to accept email addresses from Yahoo and Hotmail";
    
    echo "<a href=\"javascript:history.go(-1);\">
        <b><font size=\"2\">&lt;&lt; Previous page</font></b></a>";
    exit();
    }
    Last edited by carefree2; 05-20-2009 at 07:23 AM.

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
  •