Hi Paco..
(sorry for my english)
I have a same problem but i found a solution:
You can't use php script inside the javascript! Therefore you must do all thing in same language. Your variables must stay in hidden form elements, this is the gateway between the two language. (someone use cookie...i'm not recommend because the user simply disabled the cookie in the browser )
The goal is emulating the passed variables
here's my code:
<SCRIPT LANGUAGE="JavaScript">
var get_var = "";
for( var i = 0; i < document.myForm.elements.length; i++ ) {
get_var = get_var + document.myForm.elements.name + "=" + document.myForm.elements.value + "&";
}
url = "order.php3?" + get_var;
window.open( url );
<?php
if( isset($HTTP_GET_VARS) ) {
reset($HTTP_GET_VARS);
while (list($key, $val) = each($HTTP_POST_VARS)) {
parse_str($key."=".$val);
}
.
. // parse_str makes all variables from the URL to 'visible' for this module.
.
?>
I hope you can use it
bye..