php ocd
This commit is contained in:
parent
8283f4a769
commit
5a251e1ecf
1 changed files with 8 additions and 12 deletions
20
index.php
20
index.php
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue