Page 1 of 1

How to get a window to select file when click on link

Posted: Thu Jul 30, 2009 8:04 am
by syamswaroop
hi,
My requirement is i have to upload photos into my blog , so i have used
<input type="file">.
like that i can upload 5 files.
after selecting one file then select another link should be displayed ,on clicking the link again a window to select a file is to be appear. like that for upto 5 photos.
how to do that .

Re: How to get a window to select file when click on link

Posted: Thu Jul 30, 2009 8:22 am
by insight
syamswaroop wrote:hi,
My requirement is i have to upload photos into my blog , so i have used
<input type="file">.
like that i can upload 5 files.
after selecting one file then select another link should be displayed ,on clicking the link again a window to select a file is to be appear. like that for upto 5 photos.
how to do that .
Javascript is probably the best way of doing that. Look up some javascript tutorials or someone here might be able to tell you how.

Re: How to get a window to select file when click on link

Posted: Thu Jul 30, 2009 9:22 am
by jackpf
You'll want to look into createElement() and appendChild().