I figured out what's causing it, but how do I fix it

From: Date: Fri, 22 Mar 2002 00:46:40 +0000
Subject: I figured out what's causing it, but how do I fix it
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89624@lists.php.net to get a copy of this message
I just figured out that it's that the name of the field in the form is the same as the Session variable, cause if I change it then it doesn't have this problem, but how do I go about fixing this? Is the only solution just to make them named different things? Thanks, Dave "David Johansen" <daveisfera@yahoo.com> wrote in message news:20020322001647.8405.qmail@pb1.pair.com... > Maybe there's something that I just don't get but here's the problem I'm > having. I use this piece of code to initialize the text box in a form: > > Address: <input type="text" name="x_Address" size="20" > <?php if > (isset($_SESSION['x_Address'])) echo > "value=\"$_SESSION[x_Address]\""?>> > > Then I have a little php processing page that stores this value in a > session variable and it just does it like this: > > echo $x_Address; > $_SESSION['x_Address'] = $x_Address; > > I added the echo to check and make sure it was working but it doesn't change > the value when I resubmit the form. When I first load up the page it's blank > and when I hit back it fills in all the fields right, but then when I > resubmit the form with new values they're all just the ones from the first > time that I submitted the form. Is there something that I'm doing wrong? > Thanks, > Dave > >

« previous php.general (#89624) next »