Say I have a box , I want to send a variable from Jscript to PHP

Is it possible by using serialize() ?