Re: Passing associative arrays between forms

From: Date: Fri, 18 Aug 2000 13:56:24 +0000
Subject: Re: Passing associative arrays between forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12478@lists.php.net to get a copy of this message
This is a old trick, it may help you. If you are going to pass huge data across multiple pages, you could write the data to a flat file and the flat file will have a the unique name for every user with one of their input values like Name and email address. Only thing, you have to pass is the name and email address as the hidden variables and start collecting other information and write it to a file. At the end of data collection if you want to display the data, use the Name and email address to retrieve the file and show the information or process the information. On browser close or on the exit delete the file. Just a suggestion. Christopher Thompson wrote: > I am not sure how the implode() and explode() would help. Just keep them as > arrays. Try something like: > > <input type=text name="array[element]" value="<?php echo > $array['element']; > ?>"> > > This may only work in PHP4. > > > -----Original Message----- > > From: Paulson, Joseph V. "Jay" [mailto:jay.paulson@viatel.com] > > Sent: Thursday, August 17, 2000 2:11 PM > > To: php-general@lists.php.net > > Subject: [PHP] Passing associative arrays between forms > > > > > > Hey everyone-- > > > > I have a multiple page form (it's three pages long) and I am > > trying to pass > > an array between each form using the implode() and explode() functions. > > However, I would like to keep the associative properties of the array I > > create and not have to keep track of what position [0], > > [1],...[99] are. Is > > there any other way to pass array's between forms besides using the > > implode() and explode() functions? > > > > I've already tried cookies but I have too many values for the browser to > > handle (I have over 20 variables to pass between each form). Therefore, > > cookies won't work. > > > > Any how, any help would be much appreciated!!! :) > > > > Thanks in advance... > > Jay Paulson > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#12478) next »