| re: Carrying PHP Variables From Web Page To Web Page
Is it possible to do something like this:
Form on page1: POST to page2
Page2: extract($_POST)
hyperlink to Page3: <A HREF="page3.php?data=_POST">continue</A>
(I know it won't work as written, but is something similar possible?)
Wm
"David Walker" <wbsdavenews@hotmail.com> wrote in message
news:bgn434$b3u$1@wisteria.csv.warwick.ac.uk...[color=blue][color=green]
> > 3 choices
> > 1) use sessions to hold the variables between pages
> > 2) use hidden form fields and submit buttons (not secure)
> > 3) use a database to hold the values and embed the key in your urls[/color][/color]
(e.g.[color=blue][color=green]
> > href='somepage.php?id=34')[/color]
>
> ... of which sessions (option 1) is the best option, since that[/color]
effectively[color=blue]
> stores the values on the server as in option 3, but can pass the 'key'[/color]
from[color=blue]
> option 3 either as a cookie, form fields as in option 2 or as part of the
> link, again from option 3.
>
> David
>
>[/color] |