Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', '1');
- ?>
- <form action =" " method = "GET">
- <p>Введите имя<input name = "user" value = "<?php if(isset($_REQUEST['user']))echo $_REQUEST['user']; ?>"></p>
- <p>Введите сообщение<textarea name = "message"><?php if(isset($_REQUEST['message']))echo $_REQUEST['message'];?></textarea> <br><br></p>
- <input name ="check" value=1 type="checkbox">
- <input type = "submit">
- </form>
- <?php
- if (!empty($_REQUEST['user']) and !empty($_REQUEST['message'])) {
- $name = $_REQUEST['user'];
- $message = $_REQUEST['message'];
- echo "Имя:$name".'<br>';
- echo "Сообщение:$message";
- };
- ?>
Add Comment
Please, Sign In to add comment