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 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2009
    Location
    uk
    Posts
    81
    Thanks
    4
    Thanked 3 Times in 3 Posts

    adding email verification

    hi guys . am trying to add some sort of email verification to my script i downloaded .

    PHP Code:
    case 1:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Pls type your username";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    2:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Pls type your password";
            
    $pe "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    3:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Pls type your password again";
            
    $ce "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    4:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Username is invalid";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    5:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Password is invalid";
            
    $pe "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    6:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Passwords dnt match";
            
    $ce "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    7:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Username must be 4 characters or more";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    8:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Password must be 4 characters or more";
            
    $pe "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    9:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Username is taken";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    10:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Unknown error pls try again l8r";

    break;
        case 
    11:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Username must start with a letter from a-z";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    12:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Username is reserved for admins of the site";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    13:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Please choose an appropriate username";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break;
        case 
    14:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> U must enter an email address";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>";
            break; 
    if i added
    PHP Code:
    case 15:
            
    $errl "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/> Email is taken";
            
    $ue "<img src=\"../phpThumb/phpThumb.php?src=../images/point.gif\" alt=\"!\"/>"
    then in the register.php
    i have this
    PHP Code:
    if(trim($uid)=="")

    {
        echo 
    registerform(1);
    }else if(
    trim($pwd)=="")
    {
        echo 
    registerform(2);
    }else if(
    trim($cpw)=="")
    {
        echo 
    registerform(3);
    }else if(
    spacesin($uid)||scharin($uid))
    {
        echo 
    registerform(4);
    }else if(
    spacesin($pwd)||scharin($pwd))
    {
        echo 
    registerform(5);
    }else if(
    $pwd!=$cpw)
    {
        echo 
    registerform(6);
    }else if(
    strlen($uid)<4)
    {
        echo 
    registerform(7);
    }else if(
    strlen($pwd)<4)
    {
        echo 
    registerform(8);
    }else if(
    isdigitf($uid))
    {
        echo 
    registerform(11);
    }else if(
    checknick($uid)==1)
    {
        echo 
    registerform(12);

    }else if(
    checknick($uid)==2)
    {
        echo 
    registerform(13);

    }else if(
    trim($email)=="")
    {
        echo 
    registerform(14);
    ///////////////////////////
    //}elseif(register($birthday,$uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$news,$info, $ubr)==1)
    //{
    //    echo registerform(15);
    ///////////////////////////
    }else if(register($birthday,$uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$news,$info$ubr)==1)
    {
        echo 
    registerform(9);
    }else if(
    register($birthday,$uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$news,$info$ubr)==2)
    {
        echo 
    registerform(10); 
    i have // the codes until i get it working as u see .

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    Did you intend to post a question somewhere in that wall of code?
    Are you a Help Vampire?

  • #3
    New Coder
    Join Date
    Sep 2009
    Location
    uk
    Posts
    81
    Thanks
    4
    Thanked 3 Times in 3 Posts
    topic closed . dont know how to put topic as solved.

  • #4
    Regular Coder
    Join Date
    Jul 2009
    Posts
    187
    Thanks
    16
    Thanked 8 Times in 8 Posts
    For future references: Fully edit the first post then next to the title you'll have a drop down box which states "Resolved" as one of the options


  •  

    Posting Permissions

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