I want to use $_POST to send info from an App to a server, but when I test with Postman the $_POST doesn't get set. I am using XAMPP and php 5.6.23:
echo "it is not even set";
"It is not even set"
<form method="post" action="http://localhost/quetzal/test.php">
<input type="text" name="test" value="it is set!" />
<input type="submit" value="CHECK MY CODE" /> </form>
it is set!
You are actually sending the
test as a query parameter (retrievable within your php script via
$_GET['test']. To add
POST data in Postman, click on the
Body tab and add the data there.