Hi jason & the rest,

Dit the session_write_close()! Nothing still displayed in step3, more
thoughts??

$_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:"";
if($_REQUEST['submit']!="")
{
foreach($_POST['test1'] as $i => $Value) {
$_SESSION['test1'][$i] = $_POST['test1'][$i];
}
session_write_close();
header("Location: step3.php");

(step 3)

session_start();
$aantalpers=$_SESSION["aantalpers"];
$test1 = $_SESSION['test1'][$i];
echo $test1;
for ($i=1; $i<=$_SESSION['test1'][$i]; $i++)
    {
echo $test1;
}

Frank

----- Original Message ----- 
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 11:58 PM
Subject: Re: [PHP] Array in a $_session


> On Tuesday 17 June 2003 05:43, Frank Keessen wrote:
>
> > Thanks but nothing is displayed on page 3.... Any thoughts???
> >
> > (page 2)
> >
> > $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:"";
> > if($_REQUEST['submit']!="")
> > {
> > foreach($_POST['test1'] as $i => $Value) {
> > $_SESSION['test1'][$i] = $_POST['test1'][$i];
> > }
>
> You need to session_write_close() before redirecting.
>
> > header("Location: step3.php");
>
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> We are not a loved organization, but we are a respected one.
> -- John Fisher
> */
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to