This commit is contained in:
Tomáš Mládek 2018-10-17 17:18:58 +02:00
parent 8283f4a769
commit 5a251e1ecf

View file

@ -10,18 +10,14 @@
</head>
<body>
<?php
if (!isset($_COOKIE['outchat_name'])) {
echo '
<div class="modal">
<form action="" method="post" class="modal__form">
<input type="text" name="name" placeholder="name" minLength="3" maxLength="20" class="modal__form-input">
<input type="submit" value="»" class="modal__form-submit">
</form>
</div>
';
}
?>
<?php if (!isset($_COOKIE['outchat_name'])) { ?>
<div class="modal">
<form action="" method="post" class="modal__form">
<input type="text" name="name" placeholder="name" minLength="3" maxLength="20" class="modal__form-input">
<input type="submit" value="»" class="modal__form-submit">
</form>
</div>
<?php } ?>
<div class="chat">
</div>