I store images using one of my web pages. Next I want to load image from the db and pass the value to ajax page. Other values got correctly. But didn't get image.This is my code.
Could someone help me?
Code:
php page. When user click on select link It pass values to ajax page
echo "<td><a href='javascript:void(0);' onclick=\"test('$VehicleNo','$Year','$Other','Image'); return false;\">Select</td>";
This is my ajax code.
function LookupVehicle(VehicleNo,Year,Other,Image){
document.getElementById('VehicleNo').value=VehicleNo;
document.getElementById('userfile').value=Image;
document.getElementById('Year').value=Year;
document.getElementById('Other').value=Other;
}
Comment