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 ?>'> ?
it's not possible to do in the same script. Cause hiddens are only set in the client and PHP runs in the server.
instead, if you do a GET or a POST of a form and the hidden is inside of it, it automaticaly sends the value to the PHP as $_POST['xxx'] or $_GET['xxx'] (deppending on the method used).
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.