non puoi spedire una variabile... ma un hidden sì ...

prova ad usare questa funzione
codice:
//----------------------------------------------
// aggiunge hidden ad un form
//----------------------------------------------
function addParam(form, key, value)
{   
    if( typeof(form) == "string") 
        form = document.getElementById(form);
	
	var input = document.createElement("input");
	input.type = "hidden";
	input.name = key;
	input.value = value;
	form.appendChild(input);
}
addParam("form1", "nome_variabile", "valore_variabile");