$_post['creds']
is empty for ng2 restful webservice:
let creds = "email=" + userDetails.email + "&password=" + userDetails.password;
let headers = new Headers({ 'Content-Type': 'application/x-www-form-urlencoded' });
let options = new RequestOptions({ headers: headers });
this.http.post("http://www.dr-gontar.com/checkSignIn/", creds, options)
.subscribe((data:Response) => this.id = JSON.parse(data.text()).id);
this.http.post("http://www.dr-gontar.com/checkSignIn/", creds, options )
.subscribe((data:Response) => this.email = JSON.parse(data.text()).email);
this.http.post("http://www.dr-gontar.com/checkSignIn/", creds, options )
.subscribe((data:Response) => this.name = JSON.parse(data.text()).name);
this.http.post("http://www.dr-gontar.com/checkSignIn/", creds, options)
.subscribe((data:Response) => this.mobile = JSON.parse(data.text()).mobile);
this.http.post("http://www.dr-gontar.com/checkSignIn/", creds, options )
.subscribe((data:Response) => this.address = JSON.parse(data.text()).address);
this.userDetails = [this.id,this.email,this.name,this.mobile,this.address];
console.log(this.userDetails);