Re: [PHP] Session and validation

2004-10-30 Thread Jason Wong
On Saturday 30 October 2004 10:27, Stuart Felenstein wrote: > --- Chris Shiflett <[EMAIL PROTECTED]> wrote: > > --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > > > I had this thread going yesterday. Then basically > > > think it reached a stalemate. > > > > I think you need to try to simplify yo

RE: [PHP] Session and validation

2004-10-30 Thread Graham Cossey
[snip] > > Here is the example: > > testarray (page1) > //Start the session > > //Check for the array on submit > if ( empty( $_SESSION['l_industry'] ) ) { > $_SESSION['l_industry']=array(); > } $industry = $_POST['industry']; // ?? > //Check to make sure user didnt exceed 5 selections > if (cou

RE: [PHP] Session and validation

2004-10-30 Thread Stuart Felenstein
--- Graham Cossey <[EMAIL PROTECTED]> wrote: > So, if this is the result of a form submission how > are you getting the POST > variables? > How/where is $industry being set? I appears that you > are assuming that > variables are 'maintained' within a script, they are > not. You have to > remembe

Re: [PHP] Session and validation

2004-10-30 Thread Stuart Felenstein
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > > I had this thread going yesterday. Then basically > > think it reached a stalemate. > > I think you need to try to simplify your code to the > most basic example > that demonstrates the problem.

Re: [PHP] Session and validation

2004-10-30 Thread Chris Shiflett
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > I had this thread going yesterday. Then basically > think it reached a stalemate. I think you need to try to simplify your code to the most basic example that demonstrates the problem. By doing this, you'll achieve one of two things: 1. Figure ou

RE: [PHP] Session and validation

2004-10-29 Thread Vail, Warren
CTED] Sent: Friday, October 29, 2004 4:23 PM To: Stuart Felenstein; [EMAIL PROTECTED] Subject: RE: [PHP] Session and validation [snip] I had this thread going yesterday. Then basically think it reached a stalemate. I'm wondering has anyone setup forms using session variables and validatio

RE: [PHP] Session and validation

2004-10-29 Thread Pablo Gosse
[snip] I had this thread going yesterday. Then basically think it reached a stalemate. I'm wondering has anyone setup forms using session variables and validation. Validation where the validating is done on the same page, and the redirected on success ? [/snip] You need a class which will gener