Styleminds
asked on
how can i upload an image without refreshing the page?
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
how can i read this using javascript and innerhtml in appripriate div
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.
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
how can i read this using javascript and innerhtml in appripriate div
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.