Guest User

Untitled

a guest
Feb 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', '1');
  3. ?>
  4.  
  5.  
  6. <form action =" " method = "GET">
  7. <p>Введите имя<input name = "user" value = "<?php if(isset($_REQUEST['user']))echo $_REQUEST['user']; ?>"></p>
  8. <p>Введите сообщение<textarea name = "message"><?php if(isset($_REQUEST['message']))echo $_REQUEST['message'];?></textarea> <br><br></p>
  9. <input name ="check" value=1 type="checkbox">
  10. <input type = "submit">
  11. </form>
  12.  
  13. <?php
  14. if (!empty($_REQUEST['user']) and !empty($_REQUEST['message'])) {
  15. $name = $_REQUEST['user'];
  16. $message = $_REQUEST['message'];
  17. echo "Имя:$name".'<br>';
  18. echo "Сообщение:$message";
  19. };
  20. ?>
Add Comment
Please, Sign In to add comment