Hi,
Jacinthe, your method works for sending text strings from frame to frame...but what about complex objects?
I am trying to build a simple page with XML and DOM. I have a DOM object (or "tree" of objects), and I want to send a node (along with it's attributes, and child nodes, which may themselves have child nodes) to another html frame for displaying...I found out that you can pass objects from frame to frame by using the serialize() function...i think it basically dumps the object's information into a text string, that can be fully reconstructed into an object by using unserialize().
To pass an object to another frame, I first serialize it, and then I urlencode() it (i think this adds in the url-type escape chars like %20 for space, etc, so it can be a valid url), and then use the method you mentioned.
e.g.
$var = urlencode(serialize($var));
and then link/refresh the other frame, say, http://my.web.server/myscript.php?input=($var)
then in the other frame, you can access the $input variable, and unserialize it into whatever object $var was. I've found out that you also need to do something called striplashes() before unserializing...and also found out that I didn't need to urldecode() it at all, since I passed it through as a url, the browser already does it (i think). In short, in the new frame, do:
$var2 = unserialize(stripslashes($input));
And viola! $var2 is an object, with the same type and contents as $var!
MY problem is that I am sending a DomNode object, and this does not automatically include any of the attributes or child nodes...I might look into sessions...
OK, hope this helps...