Re: Session not working?

From: Date: Mon, 09 Jun 2003 19:01:49 +0000
Subject: Re: Session not working?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-150789@lists.php.net to get a copy of this message
Hi, The orignal code was in the first mail; again; $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { $dater=$_POST['$dater']; $aantalvol=$_POST['$aantalvol']; $aantalkind=$_POST['$aantalkind']; $aantalvol=addslashes($_POST['aantalvol']); session_start(); $_SESSION['dater'] = $dater; $_SESSION['aantalvol'] = $aantalvol; $_SESSION['aantalkind'] = $aantalkind; $_SESSION['1pk'] = $eenpk; $_SESSION['2pk'] = $tweepk; header( "Location: test3.php" ); } test3.php <? session_start(); echo $_SESSION['aantalvol']; ?> Txs for the help, Frank ----- Original Message ----- From: "Emma Jane Hogbin" <emmajane@xtrinsic.com> To: <php-general@lists.php.net> Sent: Monday, June 09, 2003 8:49 PM Subject: Re: [PHP] Session not working? > On Mon, Jun 09, 2003 at 08:18:10PM +0200, Frank Keessen wrote: > > It's pointing towards the booking.php > > (which is the 'sender' page..) > > Exact error message: The Page cannot be displayed.. > > So it's no 404.. I think.. > > Ah. So it's not even moving off the original page... I don't have your > original script and it's not in the archives yet; however, are you using > the right syntax for the header function? > > header("Location: http://www.example.com/"); > > Note that the Location must be uppercase L. > > -- > Emma Jane Hogbin > [[ 416 417 2868 ][ www.xtrinsic.com ]] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#150789) next »