Anikin,
I think you misunderstood me.
I want to assign the value of hidden var xxx to a php var.
As phpPete has shown us , is the way to go.
What you did was to assign value xxx to a php var and then assign the php var to the value of the hidden var.
Another thing , if you want to assign (display) the value of a php var isn't the correct way
<input type = 'hidden' name = 'xxx' value = '<? echo $phpVar ?>'> ?