added console log to see what php is given