Complete all data. '; } elseif (($_POST['user'])==($verificareuser) and ($parola)==($verificareparola)) { $completedata='Sign Up'; } else { $completedata='Bad username or password.
'; } } else { $completedata='Sign Up'; } echo '
Username :
Password :
'; echo $completedata; echo '
'; if (isset($_POST['Login'])) { $user=$_POST['user']; $verificareuser=''; $sql2="SELECT id,user,parola FROM users WHERE user='$user' AND status='$active'"; $result2=mysql_query($sql2); while($rows=mysql_fetch_array($result2)){ $verificareparola=$rows['parola']; $verificareuser.=$rows['user']; } $parola=md5($_POST['parola']); $_SESSION['user'] = $_POST['user']; if(($_POST['user'] == '') || ($_POST['parola'] == '')) { $completedata='Complete all data. '; } elseif (($_POST['user'])==($verificareuser) and ($parola)==($verificareparola)) { $completedata=''; $_SESSION['logat'] = 'Da'; echo ''; } else { $completedata='Bad username or password.
'; } } } else { echo 'Log out'; } ?>
Tracking

Parters