Re: Passing Array from one form to another form

From: Date: Fri, 09 Aug 2002 12:21:12 +0000
Subject: Re: Passing Array from one form to another form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111795@lists.php.net to get a copy of this message
this can be done through many ways: 1. serialization: serialize() the array and then send it as a string, deserialize it back in form2 2. join the arrays with a seperator and send as one string, and split it back in form2 3. use hidden fields with same name whose name is similar too: hiddenfield[] , and output something like: <input type='hiddenfield[]' value='array element0'> <input type='hiddenfield[]' value='array element1'> <input type='hiddenfield[]' value='array element2'> upon submition, form2 will receive an array called $hiddenfield with the correct values! good luck, Elias "J.F.Kishor" <kishor@ooty.tenet.res.in> wrote in message news:Pine.LNX.4.10.10208091630050.23749-100000@bulbul.ooty.tenet.res.in... > Hello all, > > I have got a doubt, Is there a way to pass a array from one > from to another form while submition. > > I have tried to do it, but in the second form I just get the string > "ARRAY" I'am not able to get the expected result. > > Please let me know if there is a way to do the above. > > > Thanks in adv, > > Cheers, > > kishor > Nilgiri Networks > > > > >

« previous php.general (#111795) next »