Re: [PHP] Session Variables ~ Best Practices

2004-07-14 Thread Harlequin
thanks Jay. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I am also wondering if I need to declare all my variables one after the other or can I

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Justin Patrin
On Tue, 13 Jul 2004 17:52:44 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > I'm right in the middle of developing some pages that will require session > cookies. Now I have a few questions and hope I don't bore you too much... > > I presume I am right in assuming that I can declare variables anywhe

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Michal Migurski
> I presume I am right in assuming that I can declare variables anywhere I > like providing I have started a session on the page but I cannot > actually use those variables until a post or some similar action has > been performed by the user. No, you can use them right away - they are stored serve

RE: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Jay Blanchard
[snip] I am also wondering if I need to declare all my variables one after the other or can I simply declare variables that I will be using immediately upon submission. [/snip] Since PHP is not strongly typed (like C or C++) you need not declare any variables. There are some caveats (see http://ww

[PHP] Session Variables ~ Best Practices

2004-07-13 Thread Harlequin
I'm right in the middle of developing some pages that will require session cookies. Now I have a few questions and hope I don't bore you too much... I presume I am right in assuming that I can declare variables anywhere I like providing I have started a session on the page but I cannot actually us