Hi i have a variable that I would like to somehow become a php variable without using ajax

The answer on stackoverflow mid page SEEMS right, and everything in my environment mimics his example but i still cannot get it to work