[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

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

[PHP] arrays in sessions, please!

2001-03-29 Thread Christian Dechery
Why I can get this to work? I don't understand... I made another simple script that the only thing it did was the "build array/serialize it/register the session var/ = next page load unserialize it into array/update array/serialize it again".. and it worked like a charm... I'm doing the exact