--- Paul <[EMAIL PROTECTED]> wrote:
> I figured I could do something like $_SESSION['test'] = 5 and refer to
> $test on other pages however I cannot. The reason I thought I could do
> this is because I can do $_SESSION['test'] = $_POST['test'] and be able
> to refer to just $test on other pages.

This is because you probably have register_globals enabled, so the value
of "test" in the user POST request is available to you as both:

$_POST['test']

and

$test

It has nothing to do with you also setting $_SESSION['test'].

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/

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

Reply via email to