By Ajax i want to send a url and
Here is my function
[code=html]
function set_me01(kod)
{
var xml = getXhttp();
if ( !xml )
return false; //Usually you alert something but I don’t :d
var file = ‘js/script_fat.php?act=set_me01&kod=’;
xml.open(“GET”, file+kod, true);
xml.send(null);
alert(kod);
}
Since i cannot manage to get result i added alert function at the and to see how i get kod value. To get kod value i use the following on click method
[code=html]
set_me01(‘.$row->id.’-0)
I want the output to be something like 25-0 or 45-0 depending on $row->id value
but it doesnt work. If i change the code like
[code=html]
set_me01(‘.$row->id.’0)
the output appears to be 450 or 170 something then as i understand, it requires a pure integer value without strings.
But i need a string variable so in this case how may i manage to get a string value as my variable kod like (12-0 or 27-0)