I'm trying to use the inbuilt this->input->post('name') function when creating the Sign Up API in CodeIgniter, but this->input->post() returns an empty array.
I am using the same url on the browser and it works perfectly fine there but when I try to use it on Postman, it is returning null
I had tried:
print_r($_POST).
I had also used POST And GET Method but show nothing.
which also gives null
For testing purpose I created a function in which I used the form and post method to send data that worked fine on the browser but showed nothing on Postman.
**TESTING Function**
public function test()
{
echo '<form method="POST"> <input name="name" ><input type="submit"> </form>';
// print_r($_POST);
die(var_dump($_POST));
}