Skip to content

Instantly share code, notes, and snippets.

@Padilo300
Created April 26, 2021 09:11
Show Gist options
  • Save Padilo300/610544447c05239ac63f75a5e6a45ad5 to your computer and use it in GitHub Desktop.
Save Padilo300/610544447c05239ac63f75a5e6a45ad5 to your computer and use it in GitHub Desktop.
test
<?php
/*echo "<pre>";
print_r($_POST);
echo $_POST['age'] ;
echo "<br>";
echo $_POST['about'];*/
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="/" method="post">
<input type="text" placeholder="Возраст" name="age">
<hr>
<textarea name="about" id="" cols="30" rows="10" placeholder="О себе" ></textarea>
<hr>
<button type="submit">Отправить</button>
</form>
<div>
<p>О себе: <?php echo $_POST['about']?></p>
<p>Возраст: <?php echo $_POST['age']?></p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment