Re: [PHP] Session confusion again :( - Thanks!

2004-04-15 Thread Richard Harb
Actually for me it isn't unclear at all: The (super-) global variables are created when php starts working on your script. That pesky function/ini parameter (register_globals=on) is just a replacement for an extract() on each of the global vars just then. Whatever you do later with any of the va

RE: [PHP] Session confusion again :( - Thanks!

2004-04-15 Thread Ford, Mike [LSS]
On 14 April 2004 17:53, Paul Fine wrote: > Thanks guys but I have register globals ON so once the > session variable is > defined I should be able to address it without specifying $_SESSION ? I don't think the documentation is clear on this point -- it may be that the association between the glob

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:37 PM said: > But if I want to use $username accross many pages then I will have to > make it a session variable and call it as such on each page like > "$_SESSION['username']" correct. c. -- PHP General Mailing List (http://

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
But if I want to use $username accross many pages then I will have to make it a session variable and call it as such on each page like "$_SESSION['username']" Thanks again! "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] BOOT on Wedne

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:17 PM said: > So I went and turned them off. Now of course my pages don't work > properly. I guess I have to go through all my code and address the > variables properly ie. $_POST and $_SESSION? no. just assign them at the begin

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
Yes in php.ini. I never bothered turning off as (a) I did not take the time to understand the implications and (b) my project is only for internal network use anyway. So I went and turned them off. Now of course my pages don't work properly. I guess I have to go through all my code and address the

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Dennis Gearon
"'Chris W. Parker'" <[EMAIL PROTECTED]> elucidated: Thanks guys but I have register globals ON so once the session variable is defined I should be able to address it without specifying $_SESSION ? WHERE do you have it on? Most sites now have it turned off for VERY valid security reasons. If you

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Paul Fine
] Session confusion again :( - Thanks! BOOT <mailto:[EMAIL PROTECTED]> on Wednesday, April 14, 2004 9:40 AM said: > What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! [snip] > $_SESSION['element_countp

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Ford, Mike [LSS]
On 14 April 2004 17:40, BOOT wrote: > Any help with this would be appreciated. the p and v lnames are > posted from a form. In the form, the user seperates last names with a > "/". What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! > > >

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 9:40 AM said: > What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! [snip] > $_SESSION['element_countp'] = count($p_lnames); > echo "TEST 1".$element_countp; > > $element_co