I've an array $layer in php, I pass this to javascript, JS can then add/remove elements and I get it back in php. I do this using:
layerDesStr = '<?=serialize($layerDes)?>'; // php to JS // JS to php for(var i = 1; i < layer.length; i++) { goURL = goURL + "&layer[]=" + layer[i]; } document.location.href = goURL; I retrieve them in my php code using $HTTP_GET_VARS["layer"] This is fine when the user uses JS to modify the array, but if the user uses JS to modify it and then wants to do some operation on it in php, this variable ($layer) doesn't show up, because now $HTTP_GET_VARS["layer"] is not defined. My ques. is how do I save the variable betn. successive clicks by the user, do I need sessions? I tried the foll. without success: <?php // start of script if(!session_is_registered('layer') ) { session_register('layer'); } Thanks, -Pushkar S. Pradhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php