Re: Resending POST Variables

From: Date: Wed, 28 May 2003 16:38:11 +0000
Subject: Re: Resending POST Variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-149282@lists.php.net to get a copy of this message
ok, basically this is so I can implement page numbering on my search results, the user submits the form and I want to be able to send the form results back to the same page when the user clicks 'next' or 'previous'. I have tried putting this at the top of the page: $_SESSION['post'] = $_POST; $_POST = $_SESSION['post']; but this doesn't work, any ideas? Thanks for your help "Adam Voigt" <adam@cryptocomm.com> wrote in message news:1054139379.2179.5.camel@beowulf.cryptocomm.com... > <form name="form1" method="post" action="nextpage.php"> > <?php > > foreach($_POST AS $key => $value) > echo "<input type=\"hidden\" name=\"$key\" > value=\"$value\">"; > > ?> > </form> > > <a href="javascript:document.form1.submit();">Submit Again</a> > > > Like that? > > > On Wed, 2003-05-28 at 12:22, Shaun wrote: > > Hi, > > > > I have a page which uses POST variables sent from a form. If a user clicks > > on a link on this page is it possible to send those POST variables to the > > next page aswell? > > > > Thanks for your help > -- > Adam Voigt (adam@cryptocomm.com) > Linux/Unix Network Administrator > The Cryptocomm Group >

« previous php.general (#149282) next »