Re: Sample code

From: Date: Sun, 25 Jan 2004 05:03:39 +0000
Subject: Re: Sample code
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-175673@lists.php.net to get a copy of this message
Thanks for any help. Even if I remove the specific default value for the text input, only the first posted value seems to be accepted and stays regardless of whether I change it :( test10.php ----------- <?php session_register("test");?> <body> <a href="test11.php">NEXT</a> </body> test11.php ----------- <?php session_start();?> <body> <form name="form1" id="form1" method="post" action="test12.php"> <input name="test" type="text" value="<?php echo $test;?>"/> <input type="submit" name="Submit" value="Submit" /> </form> test12.php ----------- <?php session_start();?> <body> <?php echo "HELLO: ".$test ; ?> <p><a href="test11.php">START OVER</a> </p> </body> "Paul" <pfine@of-law.com> wrote in message news:20040125044641.33376.qmail@pb1.pair.com... > I figured out my problem but I am not sure why this is. > > > > I am trying to implement a back button to allow the user to go back and > change form values. > > > > If I use sessions and register $test then this does not work, the value of > $test does not change if the user re-submits: > > > > <input name="test" type="text" value="<?php echo > $test;?>"/> > > > > Thanks for any help!

« previous php.general (#175673) next »