You have to manually repopulate your fields with the variables that are
passed to the page.
Example:
You have textbox1 and textbox2
You reload.
<?php
echo "<input type=text name=textbox1 value=$textbox1>";
echo "<input type=text name=textbox2 value=$textbox2>";
?>
For the first time you load the page, those values should be empty, so
nothing will be in the text boxes.
VP of Color LaserJet Printing
and also Systems Engineer
Adam Lang
----- Original Message -----
From: "Pam Will" <pwill@m...>
Newsgroups: pro_php
To: "professional php" <pro_php@p...>
Sent: Friday, August 31, 2001 3:00 PM
Subject: [pro_php] Re: Re-Display the Same Web Page
> This does exactely what I want... However, how do I get the variables to
> "stick". When the page reloads, whatever was sitting in my variables are
> then gone when the page reloads...
>
> <chris_camplejohn@e...> wrote in message news:98353@p..._php...
> >
> > It does re-display it, but posts the data that is on the page back to
> > itself.
> >
> > If you want to reload the page then use
> > onclick="Javascript:top.location.reload()"
> >
> > Hope this helps,
> > Chris
> >
> > > Does setting the action on a form to $PHP_SELF forse the web page to
> > > redisplay when you select the SUBMIT button?