How was, and how is set "register globals" ? If it is off, as it should, it works this way. Try $valor=$_POST['valor']; echo "Valor = $valor"; Do you see the result ? Luis ----- Original Message ----- From: "Josep" <tweek@canal21.com> To: <php-windows@lists.php.net> Sent: Tuesday, January 27, 2004 9:06 AM Subject: error with variables after php 4.1.1 (but not priors) > Hi, > > I was using PHP 4.1.1 for windows without any problem. But I can't put a > newer version into my server. > In versions after PHP 4.1.1 if I pass a simple form value to a next php > document, the value "loose" its value :-(. > I haven't touch anything in php.ini file. > > Here the code example (that works successfully with version 4.1.1 and prior) > where I've omited irrelevant code: > > <form name="form1" method="post" action="provaVariables2.php"> > <input name="valor" type="text" value="Hello"> > <input type="submit" name="Submit" value="Submit"> > </form> > > > In provaVariables2.php: > <body> > <? echo "The value is: $valor"; ?> > </body> > > > The result is: "The value is: " > > > Thank you. > Josep. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php