...

View Full Version : adding email verification



nclemale
06-17-2010, 05:16 PM
hi guys . am trying to add some sort of email verification to my script i downloaded .



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


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


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 .

tomws
06-17-2010, 06:36 PM
Did you intend to post a question somewhere in that wall of code?

nclemale
06-17-2010, 06:49 PM
topic closed . dont know how to put topic as solved.

Jazz914
06-17-2010, 07:24 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum