RE: [PHP] passing arrays from script to script
| From: | Noor Dawod | Date: | Wed, 02 Aug 2000 17:37:23 +0000 |
| Subject: | RE: [PHP] passing arrays from script to script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9744@lists.php.net to get a copy of this message | ||
Hi Enrique,
Use serialize() to pass complete PHP objects from one HTML page to another.
In your example, you would substitute $fooarray[] with: <? echo
htmlspecialchars( serialize( $fooarray ) ); ?>. and then in your next PHP
page, you'd use $fooarray = unserialize( $fooarray ); to get back the
requested array object.
Noor
-----Original Message-----
From: php-general-return-9737-noor=comrax.com@lists.php.net
[mailto:php-general-return-9737-noor=comrax.com@lists.php.net]On Behalf
Of enrique mochales
Sent: eai oaeoe 02 aaaane 2000 18:23
To: php-general@lists.php.net
Subject: [PHP] passing arrays from script to script
Hi,
I'd like to know how I can pass an array from a script
to another script by means of an html anchor such as:
<a href="foo.php3?fooarray=$fooarray[]">tofoo</a>
Of course, the above doesn't work. I want to know a
way to do it as simple as possible.
tia --E.
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
--
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