I've got following JSON String:
{ email: "test@test.de", password: "123456" }
In my PHP File, i use following Code:
$content = file_get_contents("php://input");
$input = json_decode($content, true);
foreach ($input as $value) {
$names[] = $value;
$email = $value->email;
$password = $value->password;
}
So how can i set a variable for the email and password?