RE: [PHP] POST Variables
| From: | John W. Holmes | Date: | Sun, 27 Apr 2003 23:11:42 +0000 |
| Subject: | RE: [PHP] POST Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145454@lists.php.net to get a copy of this message | ||
> > > I have a page with a form. Upon submission of the form I include a
> > file
> > > and
> > > if a certain condition is met a redirect the user back to the form
> > with
> > > the
> > > header(Location: url) function. By doing this do I loose the
> > information
> > > in
> > > the POST variables sent from the form originally?
> >
> > Yes.
> >
> > > Thanks for your help
> >
> > You're welcome.
> >
> > ---John W. Holmes...
> >
> > PHP Architect - A monthly magazine for PHP Professionals. Get your
copy
> > today. http://www.phparch.com/
> >
> >
>
> Thanks for your reply John,
>
> Is there a way to send them on again to the next page?
Yes. Again, you're welcome.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
PS: If you don't want to keep getting Yes/No answers, maybe you should
ask more descriptive questions. If you want to pass the entire POST
array to another page, the easiest way is to put it in the session:
$_SESSION['post'] = $_POST; //save
$_POST = $_SESSION['post']; //extract
If you're not using / can't use sessions, then you can serialize it into
a form or URL or save it in a database or file...