Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST["login"])) {
- $user_and_user=array(array('Marko'=>'Marko'),array('Milos'=>'123'),array('Jelena' => '321'));
- $greska3="Please enter a valid User name and password!";
- $greska4="Please fill in the blanks";
- $user=$_POST["user"];
- $pass=$_POST["pass"];
- if (empty($user) && empty($pass)) {
- echo include "index.php",'<p style="color:red; font-size:25px; text-align:center;">'.$greska4.'</p>';
- foreach ($user_and_user as $key => $value) {
- foreach ($value as $key2 => $value2) {
- if ($value[$key2]==$user && $value[$value2]==$pass) {
- echo include "kalkulator.php";
- break;
- }else{
- echo include "index.php",'<p style="color:red; font-size:25px; text-align:center;">'.$greska3.'</p>';
- }
- }break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement