Re: using sessions and include

From: Date: Wed, 14 Nov 2001 08:18:07 +0000
Subject: Re: using sessions and include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74552@lists.php.net to get a copy of this message
session name in the display_image appears to be different from the name specified in the index "Jtjohnston" <jtjohnston@courrier.usherb.ca> ha scritto nel messaggio news:3BF1FD2B.47BD7869@courrier.usherb.ca... > Martin, are ya out there? Does anyone know anything about sessions? (An > post & reply would be handy :) > > I am using session_register. I have: > > > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/index.html > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/index.html.phps > > Which submits to: > > > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/postcard.php > > > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/postcard.phps > > postcard.php is supposed to pass data to display_image.php > > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/display_image.ph p > > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/display_image.ph ps > > The problem is that display_image.php loses my data coming from > index.html > > }else{ > include "display_image.php"; > } > > But when I try to debug and remove the \\ on lines 3 & 4 > > //include("display_image.php"); > //exit; > > display_image.php will display my data correctly from index.html > > Can anyone help? What am I doing wrong? > > John > >

« previous php.general (#74552) next »