Try:
<?php
if (isset($_POST['name'])) {
$name = $_POST['name'];
}
if (isset($_POST['price'])) {
$price = $_POST['price'];
}
if (isset($_POST['description'])) {
$description = $_POST['description'];
}
?>
More Related Contents:
- Multiple inputs with same name through POST in php
- How to read if a checkbox is checked in PHP?
- php $_POST array empty upon form submission
- method=”post” enctype=”text/plain” are not compatible?
- How to prevent form resubmission when page is refreshed (F5 / CTRL+R)
- Submitting a multidimensional array via POST with php
- POST an array from an HTML form without javascript [duplicate]
- Send value of submit button when form gets posted
- PHP: check if any posted vars are empty – form: all fields required
- PHP – Redirect and send data via POST
- PHP POST not working
- PHP: Possible to automatically get all POSTed data?
- getting a checkbox array value from POST
- Back button re-submit form data ($_POST)
- Prevent Back button from showing POST confirmation alert
- Print $_POST variable name along with value
- PHP $_POST not working? [duplicate]
- Forbidden Error When Submitting Simple PHP Form
- Simple form not sending data via _POST [duplicate]
- multi-dimensional array post from form
- PHP Errors – Total of four [closed]
- How do I send a POST request with PHP?
- Checking if form has been submitted – PHP
- Best way to avoid the submit due to a refresh of the page
- How to change maximum number of POST variable in PHP?
- getting multiple checkboxes names/id’s with php
- PHP: $_GET and $_POST in functions?
- How do I use two submit buttons, and differentiate between which one was used to submit the form? [duplicate]
- When do I use PHP_EOL instead of \n and vice-versa ? Ajax/Jquery client problem
- Parsing multipart form data