Jump to content

Recommended Posts

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

You can't pass a sha1() into isset() as a parameter. As isset is a check in it's self I would give it it's own space in the if conditional, which should remove your problem aswell. i.e.

if ((isset($korisnickoIme) && $korisnickoIme !=='admin') && (isset($lozinka) && (sha1($lozinka) !== '7110eda4d09e062aa5e4a390b0a572ac0d2c0220')) {

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.