Re: Global Array and duplicate values

From: Date: Mon, 08 Oct 2001 14:41:55 +0000
Subject: Re: Global Array and duplicate values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70367@lists.php.net to get a copy of this message
On Mon, 8 Oct 2001, Vincenzo PAtruno wrote: > Hi everybody!! Ciao :) > The second script's goal is to get the variable sent from the first php > page and store it someware. > I used a global array (because i need to store the same variable more times) > but when I check the array content... > ... each value is stored two times. > Does Anybody know why and how to fix the problem? hmm i think that this is an error of your script. before the line that you store the data into global array insert this line: echo "store!<br>" If you see 2 store! you call "the store function" 2 times. or try to insert a "echo count($array);" at the start of second.php end before and after the store function. my 2c help and sorry for the bad english.. PS: have you tried the Italian PHP ML ?? www.ziobudda.net/mailman/listinfo/php-it -- Michel <ZioBudda> Morelli michel@ziobudda.net ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.linuxlab.it

« previous php.general (#70367) next »