'Pass arguments to a PHP file when using http.post('phpfile.php') in Angular
I am using Angular and I have post request in my .ts file that calls a PHP file in my project. I would like to pass some arguments so I can use them in that PHP file.
Here is my HTTP post request
this.http.post('http:localhost/api.php');
How can I pass some variables into this so I can use them in the api.php file?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
