On Wed, 14 Nov 2001 10:30:03 +1100, Martin Towell wrote: >That's why I put quotes around the words - obviously a function >would be >need to be written to do the "serialising" and a corresponding php >function >to retrieve the values and place them into an array again.
oops, I guess I misread that. You're right, that's crazy enough to work. a serialize function in javascript that serializes things the same way as php would be very useful, probably an unserialize function would be too. >-----Original Message----- >From: Mark [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, November 14, 2001 10:28 AM >To: [EMAIL PROTECTED]; PHP General >Subject: RE: [PHP] javascript to php ??????? > > >On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote: >>"serialise" the array and make the "value" of a hidden field this >>value. >>Then in PHP "unserialise" it. > >that would work great if it were a php array, but I believe we're >talking about javascript arrays here. :) > >>-----Original Message----- >>From: fitiux [mailto:[EMAIL PROTECTED]] >>Sent: Wednesday, November 14, 2001 10:18 AM >>To: PHP General >>Cc: [EMAIL PROTECTED] >>Subject: Re: [PHP] javascript to php ??????? >> >> >>>>Hi =) >>>>is it possible to pass a javascript array to php ??? >> >>>by the time javascript comes into play, php has already done it's >>>job >>>and left the building. If you mean can javascript pass variables to >>>a >>>new request for php to handle, then sure. >> >> >>Thanks for your reply. =) >> >>I have a little problem.. >>well.. with php I build an html page with javascript to validate a >>form, >>the action of this form is call again to the php page. >>I mean... >> test.php ----- (make an html page)---> question.html --- >>(submit >>form)----> test.php >> >>I populated an array but now I need to pass this array to the same >>starting >>php page again. >> >>can I do this? >> >> >>--Patricio >> >> >>(I apology because my english is not good enough.. I hope that you >>can >>understand me.. ) >> >> >> >> > > -- Mark, [EMAIL PROTECTED] on 11/14/2001 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]