Jump to content

azraelGG

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by azraelGG

  1. strange it works on that site too, but on my page it only color my submit button, i set !important tag at the end. i can see it when i press inspect element but same thing only hide color from button not input fields if someone has time to take a look - http://www.zipupload.org/38f its php use xampp to open and htdocs
  2. how can i color input fields in chrome - i did one code it works for ffx but chrome wont do it #login input{ width: 230px; color:white; background:green; margin-bottom: 10px; padding:4px; }
  3. wrong this code is correct if(isset($_REQUEST['login'])){ if(isset($krivoIme)) echo $krivoIme; }
  4. i add this code and it works now as i wanted - did you had another idea? behind login form ofc if(isset($_REQUEST['login'])){ echo isset($krivoIme); }
  5. no this is just example without database nice idea, thanks
  6. hi currently i created login form and its working but i want replace my echo messages be below form not above how can i replace it (is it possible without repeating code) here is the code <?php //username and password check - start session or display wrong username and password if (isset($_REQUEST['login'])){ $korisnickoIme=$_REQUEST['korisnickoIme']; $lozinka=$_REQUEST['lozinka']; if ($korisnickoIme=='admin' && sha1($lozinka)=='7110eda4d09e062aa5e4a390b0a572ac0d2c0220') { $_SESSION['logiran']='da'; $_SESSION['korisnickoIme']=$korisnickoIme; } else{ echo "Molimo unesite ispravne podatke."; } } //display login form - if someone clicked logout button or not logged in if ( (isset($_REQUEST['logout']))||(!isset($_SESSION['logiran'])) ) { echo '<!--start of login form sidebar--> <form id="login" action="index.php" method="post"> <label>Korisničko ime:</label> <input type="text" name="korisnickoIme" id="korisnickoIme" /> <label>Korisnička šifra:</label> <input type="password" name="lozinka" id="lozinka" /> <input type="submit" value="Login" name="login" /> </form>'; if(isset($_REQUEST['logout'])){ session_destroy(); echo "Uspješno ste se odjavili."; } } //if user is logged in display logut form elseif (isset($_SESSION['logiran'])) { echo "Logirani ste pod imenom ".$_SESSION['korisnickoIme']; echo'<!--start form for logout --> <form id="logout" action="index.php" method="post"> <input type="submit" value="Logout" name="logout" /> </form> '; } ?> i want that part of code else echo "Molimo unesite ispravne podatke" below form this other echo shows at bottom because that code is below form. any way to reposition that echo or how do i do it
  7. im trying to build simple login form with some if functions(currently without database) but i got stuck on line 77 if (isset($korisnickoIme)!=='admin' && isset(sha1($lozinka))!=='7110eda4d09e062aa5e4a390b0a572ac0d2c0220') { echo "Molimo unesite ispravne podatke."; } when i erase isset from isset(sha1($lozinka)).... then it works but i get error for variable not defined - any ideas? call if you need all code but rest of it works fine (notice that i have isset at $korisnickoIme and there it works
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.