Re: [PHP] Session: I RTFM

2002-12-15 Thread Marco Tabini
: I RTFM Date: Sat, 14 Dec 2002 18:41:40 -0500 From: John Taylor-Johnston [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Organization: FLSH, U-de-S To: [EMAIL PROTECTED] Jason wrote: RTFM again. Jason, again, I RTFM

Re: [PHP] Session: I RTFM

2002-12-15 Thread michael kimsal
Marco Tabini wrote: Single quotes are normal strings. Double quotes are strings in which substitutions can take place. For example: ?php $a = 'test'; echo '$a'; // outputs $a echo $a; // outputs test ? Double quotes also expand escape strings (e.g.\n) whereas single quotes don't. However,

[PHP] Session: I RTFM

2002-12-14 Thread John Taylor-Johnston
Jason wrote: RTFM again. Jason, again, I RTFM, but did not get it working. Otherwise I wouldn't have dared ask a question. Sessions depends on a number of factors including your version of PHP and the setting of register_globals. The FM manual says: $_SESSION (or $HTTP_SESSION_VARS with PHP

Re: [PHP] Session: I RTFM

2002-12-14 Thread Marco Tabini
I haven't followed the rest of the thread, but how about using a function? function getvar ($varname) { if (isset ($_POST[$varname]) { $_SESSION[$varname] = $_POST[$varname]; return $_POST[$varname]; } elseif (isset

Re: [PHP] Session: I RTFM

2002-12-14 Thread John Taylor-Johnston
] Session: I RTFM Date: Sat, 14 Dec 2002 18:41:40 -0500 From: John Taylor-Johnston [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED

Re: [PHP] Session: I RTFM

2002-12-14 Thread Justin French
] Session: I RTFM Date: Sat, 14 Dec 2002 18:41:40 -0500 From: John Taylor-Johnston [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Organization: FLSH, U-de-S