how to convert javascript variable to php variable