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 s

RE: [PHP] arrays and sessions

2004-02-27 Thread Chris W. Parker
Kermit Short 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 >

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 recent

RE: [PHP] arrays and sessions

2004-02-27 Thread Chris W. Parker
Kermit Short 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

[PHP] arrays and sessions

2004-02-27 Thread Kermit Short
Uh, sorry, I'm Kermit, not news.php.net OK gurus, I'm trying to create a page that allows me to create a table in my MSSQL database. I'm accepting the field info one by one in a form using a PHP_SELF action. This information is supposed to be collected in an array that's to be stored as a sessi