I am working on asp classic. I have three fields
First Name
Last Name
Upload Image
I want to post data with ajax request to .asp page and want to retrieve values on .asp page.
I have post request like this:
jQuery.ajax({
type:"POST",
data:
{
'method':'EOTMInsert',
'fname':Fname,
'lname':Lname
},
url:"/async2.asp",
dataType:"text",
success:function(data, status) {
httpResults = data;
alert("Employee saved.");
jQuery(location).attr('href','/eotm.asp');
},
async:false
});
Values retrieved on .asp form
set fname = Request("fname")
set lname = Request("lname")
Now, I also want to post image and want to save on root path.
If have any idea please share with me. Thanks