-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reseni ukolu na 9. lekci #12
Conversation
86a57c0
to
b1cbf4c
Compare
prihlas-me.php
Outdated
<?php | ||
session_start(); | ||
|
||
$uzivatelskeJmeno = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je to detail, ale doposud jsme s nima všude psali "
.
prihlas-me.php
Outdated
$uzivatelskeHeslo = ''; | ||
|
||
// pokud neexistuje session, zalozime si ji | ||
if (!isset($_SESSION['pokusu_prihlaseni'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Většinou používáme empty
. Minule už sice Petr isset
použil, ale pak to stejně vracel na empty
. Takže buď bych použil to a nebo jim isset
trochu představil.
prihlas-me.php
Outdated
if (isset($_GET['jmeno']) && isset($_GET['heslo'])) { | ||
$_SESSION['pokusu_prihlaseni']++; | ||
|
||
echo "Toto je ".$_SESSION['pokusu_prihlaseni'].". pokus o přihlášení."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mezery kolem .
🤯
@@ -0,0 +1,23 @@ | |||
<?php | |||
session_start(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Možná to budeš mít dál, ale tohle bych pak asi přesunul do sdilene.php
ať se to startuje všude, ne?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to bude opravdu as nekde dal (mimo ukol)
e75d403
to
b28fa9b
Compare
b28fa9b
to
460debb
Compare
No description provided.