It is necessary to send an email to php server in order to select a user from the database by mail, how to receive data for selection in the php file ??
mail gets into the body constant, and if I check the $ _POST array in the PHP file, it is empty for some reason, maybe I misunderstood something?
getUserByMail(email: string){ const body = {email: email}; console.log(body); return this.http.post('http://ng-everyday/php/test.php', body); }