Created
March 31, 2017 18:01
-
-
Save webyroki/97c4014528468ef219575ff7067db8ce to your computer and use it in GitHub Desktop.
base form.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> <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