I don't know if I'm clear, but what I'm trying to do is something like this:
ajaxUpdate= $.ajax({
url: "updateSheet.php",
type: "post",
data: {
'update': 1,
'id': $('#numbah'+numbah+'').attr("class"),
'x': if (x) x,
'y': if (y) y,
'title': if (title) title,
'content': if (content) content
}
});
is something like 'x': if (x) x,
correct? I can't risk running this part of code corrupted, because it can mess with my file.