Quinonez wrote:
<snip>[color=blue]
>=============testthis.php========
> <?
> session_start();
> header("Cache-control: private");[/color]
$_SESSION['testthis'] = $_POST;
[color=blue]
> ?>
> <html>
> <body>
>
> <?
> ## foreach($_POST as $field=>$value)
> ## {
> ## echo "$field = $value<br>";
> ## }[/color]
echo '<pre>'; print_r($_SESSION); echo '</pre>';
or
foreach ($_SESSION as $page=>$post) {
echo "<h1>$page</h1>";
foreach ($post as $field=>$value) {
echo "$field = $value<br>";
}
}
[color=blue]
> ?>
>
>
> </body>
> </html>
>
> How do i change this to display correctly? currently it will only
> display the last page[/color]
The $_POST array only has the last submitted page.
You need to use the $_SESSION array.
Happy Coding :-)
--
Mail to my "From:" address is readable by all at
http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!