Ania2019

index.php

May 11th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <form method="post" action="save.php">
  2. <label>Podaj adres e-mail
  3. <input type="email" name="email"
  4. <?=
  5. isset($_SESSION['given_email']) ?
  6. 'value="'.$_SESSION['given_email']. '"' : ''
  7.  
  8. ?>>
  9. </label>
  10.  
  11. <input type="submit" value="Zapisz się!">
  12. <?php
  13. if (isset($_SESSION['given_email'])) {
  14. echo '<p> To nie jest poprawny adres!</p>';
  15. unset($_SESSION['given_email']);
  16.  
  17. }?>
  18.  
  19.  
  20. </form>
Advertisement
Add Comment
Please, Sign In to add comment