In my case it doesn't work.

I need to transfer some variables from js to php

Any work arounds???