I am trying to make a post from postman to the server. Everything seems alright but when I attempt to make a post it returns an error as shown
<th align='left' bgcolor='#f57900' colspan="5">
<span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined index: name in Upload-Download-PDF-File-Demo\upload.php on line
<i>27</i>
</th>
Here is the snippet on the php file
$response = array();
if($_SERVER['REQUEST_METHOD']=='POST'){
//checking the required parameters from the request
//connecting to the database
//$con = mysqli_connect(DB_HOST,DB_USERNAME,DB_PASSWORD,DB_NAME) or die('Unable to Connect...');
$con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect...');
//getting name from the request
$name = $_POST['name'];
Here is a picture on my attempt from postman
This is my first time experiencing this type of error. Please what could be wrong