how can i upload an image without refreshing the page?
Posted on 2009-05-11
Hello i know that to upload an image without refreshing is to point the target form to an hidden frame in the same page, but the question that how can i render the echoed result from the file loaded to div into explanation text loaded to a div near to the upload for example
if the image is loaded i echo in the php "1"
if the image can't be uploaded echo in php "2"
and of course any default error message will displayed
as if "1" succesfull IT POST IN THE DIV "your image is loaded successfully"
and so on
hope i explain clearly and i look for your response.