changed php response to POST