Skip to content

Instantly share code, notes, and snippets.

@webyroki
Created March 31, 2017 18:01
Show Gist options
  • Save webyroki/97c4014528468ef219575ff7067db8ce to your computer and use it in GitHub Desktop.
Save webyroki/97c4014528468ef219575ff7067db8ce to your computer and use it in GitHub Desktop.
base form.php
<?php
if (isset($_POST['submit'])) { //если нажали клавишу
echo $_POST['name']; //выводим данные из формы поля name
var_dump(file_get_contents("php://input")); // читаем данные в строку переданные HTTP без обработки raw
}
?>
<form action="" method="POST">
Введите ваше имя :<br>
<input type="text" name="name">&nbsp;<br / >
<input type="submit" name='submit' id="bigbutton" value="Add">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment