Possible Duplicate:
How to pass JS variable to php?
Passing javascript variables to php?
how to pass a valu from javascript function, I have this kind of code
function next(c,q){
var y=Number(q);
var x=Number(c)+1;
var texta=document.getElementById('myText');
var content=document.getElementById('woo'+x);
var page=document.getElementById('paged');
var thik=document.getElementById('lengthik');
texta.value=content.value;
page.value=x;
thik.value=y;
var z=100/y;
//update progress bar
$("#progressbar").progressbar("option", "value", $("#progressbar").progressbar("option", "value") + z);
if($("#progressbar").progressbar("option", "value") < 100){
$("#amount").text($("#progressbar").progressbar("option", "value")+"%");
}
else{
$("#amount").text(100+"%");
}
}
and I want to throw the new value of the id #progressbar into the php. this id is dynamic because it is a probressbar