preview image before upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mit
Forum Commoner
Posts: 32
Joined: Mon Sep 15, 2008 6:37 am

preview image before upload

Post by mit »

i need to preview images before submitting them ,so how can i do it before submitting them to data base?
any idea? how can i use ajax to solve this ?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: preview image before upload

Post by onion2k »

mit wrote:how can i use ajax to solve this ?
That's an odd question. Why do you want to solve an entirely clientside problem with AJAX?
mit
Forum Commoner
Posts: 32
Joined: Mon Sep 15, 2008 6:37 am

Re: preview image before upload

Post by mit »

so what other method do u suggest to solve it?!
i ve used
function preview(what){
document.getElementById("previewField").src=what.value;

but it s only working in old IE version ...
Post Reply