';
if(empty($_POST['user_name'])){
$error .= 'User Name can\'t be empty
';
}
if(empty($_POST['fname'])){
$error .= 'First Name can\'t be empty
';
}
if(empty($_POST['lname'])){
$error .= 'Last Name can\'t be empty
';
}
if(empty($_POST['email'])){
$error .= 'Email can\'t be empty
';
}
if(empty($_POST['password'])){
$error .= 'Password can\'t be empty
';
}
if(empty($_POST['re_password'])){
$error .= 'You must re-type your password
';
}
if($_POST['password']!=$_POST['re_password']){
$error .= 'Passwords don\'t match
';
}
if($row){
$error .= 'User Name already exists
';
}
$error .= '