Re: HOW CAN I PROCESS LARGE AMOUNT OF DATA?

From: Date: Wed, 07 Nov 2001 09:48:42 +0000
Subject: Re: HOW CAN I PROCESS LARGE AMOUNT OF DATA?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-73711@lists.php.net to get a copy of this message
submitted.php -------------- session_start(); // create a new session while(list($nome,$valore)=each($HTTP_POST_VARS)){ // parse all the variables got from the form session_register($nome); // save each variable and its value } // stop This will get the POST (change HTTP_POST_VARS to HTTP_POST_GET if U have a METHOD=GET in the form) and save each variable in the session Now in the second FILE, just after the one that gets the data from the form, you gest need to: after_submitted.php -------------------- session_start(); // reload, if present, the last session data while(list($nome,$valore)=each($HTTP_SESSION_VARS)){ // parse all the variables got from the form echo ("Variable name: $nome<BR>Variable value: $valore<BR>"); // Print variable name and its value } // stop this will print all the variables and values in the current session Byez "Jim" <landeo@hkem.com> ha scritto nel messaggio news:20011107093406.33835.qmail@pb1.pair.com... > could u show me a little demo? > > "Dav" <dav@thecloud.o> ¼¶¼g©ó¶l¥ó·s»D > :20011107085233.1634.qmail@pb1.pair.com... > > you can use "session" functions to save the data and then cycling the > array > > $SESSION_VARS that contains all the data. > > > > J > > "Jim" <landeo@hkem.com> ha scritto nel messaggio > > news:20011107085001.99276.qmail@pb1.pair.com... > > > hi all, > > > i am in situation that i got 300 set of data in a form, each set of data > > > contain id, name, room_num. > > > now, i want to use these data in a php page after i post them out. for > > > example, i want to display these data in next page. what can i do? PLS > > > HELP!!! > > > > > > in last page, i got > > > id_1, name_1, room_num_1 > > > id_2, name_2, room_num_2 > > > id_3, name_3, room_num_3 > > > id_4, name_4, room_num_4 > > > ... > > > > > > in my display.php > > > <? > > > for (i=0;i<10;i++) > > > { > > > echo ("$id_$i, $name_$i, $room_num_$i"); > > > // i want to echo > > > // id_1, name_1, room_num_1 > > > // id_2, name_2, room_num_2 > > > // id_3, name_3, room_num_3 > > > // id_4, name_4, room_num_4 > > > // this does not work, but how cna i work out? > > > > > > } > > > ?> > > > > > > > > > > > > > > > > > >

« previous php.general (#73711) next »