Possible Duplicate:
Detecting Ajax in PHP and making sure request was from my own website
I have a form for uploading images and i am using Ajaxform()
$('#uploadformimage').ajaxForm({
beforeSend: function() {
$(".progress").css("display","block");
$("#response").html("");
status.empty();
var percentVal = '0%';
bar.width(percentVal)
percent.html(percentVal);
},
uploadProgress: function(event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
bar.width(percentVal)
percent.html(percentVal);
//console.log(percentVal, position, total);
},
complete: function(xhr) {
$(".bar").css("width","100%");
$(".percent").html("100%").delay("8000").parent().slideUp(1000);
$("#response").html(xhr.responseText);
}
});
This is my javascript code .I want to find out server-side
that the form is uploaded by ajax or not?
Javascript may be disabled on some computer so i want to show some different data ?