Skip to content
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

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Conversation

obelixicek
Copy link
Collaborator

No description provided.

prihlas-me.php Outdated
<?php
session_start();

$uzivatelskeJmeno = '';
Copy link
Member

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'])) {
Copy link
Member

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í.";
Copy link
Member

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();
Copy link
Member

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?

Copy link
Collaborator Author

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)

@obelixicek obelixicek force-pushed the feature/reseni-ukolu-pred-9-lekci branch from e75d403 to b28fa9b Compare December 4, 2019 13:25
@obelixicek obelixicek force-pushed the feature/reseni-ukolu-pred-9-lekci branch from b28fa9b to 460debb Compare December 4, 2019 13:44
@obelixicek obelixicek merged commit 11cb426 into master Dec 4, 2019
@OndraM OndraM deleted the feature/reseni-ukolu-pred-9-lekci branch December 10, 2019 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants