RE: [PHP] arrays and sessions

2004-02-27 Thread Chris W. Parker
Kermit Short mailto:[EMAIL PROTECTED] on Friday, February 27, 2004 1:47 PM said: A second form will contain an action that sends the sql code for creating the table to the database server, and viola, I've got myself a new table. i prefer the violin, but viola's are cool too. ;) If

Re: [PHP] arrays and sessions

2004-02-27 Thread Kermit Short
I've got some code and it simply isn't working. I thought it might be because each time the form submits data, the array I'm storing information in is being re-initialized. If this is the case, I don't have the multidimensional array I'm trying to get, but just a vector array with the most

RE: [PHP] arrays and sessions

2004-02-27 Thread Chris W. Parker
Kermit Short mailto:[EMAIL PROTECTED] on Friday, February 27, 2004 2:10 PM said: I've got some code and it simply isn't working. I thought it might be because each time the form submits data, the array I'm storing information in is being re-initialized. If this is the case, I don't have

Re: [PHP] arrays and sessions

2004-02-27 Thread Justin Patrin
First of all, make sure you're doing session_start() before reading/writing any session data and before you do any output. Second, You likely need to just do something like this: session_start(); if(post data) { $_SESSION['formArray'][] = $_POST; } This will save each POST array as-is in the