Jan 6, 2003 #1 TheConeHead Programmer Joined Aug 14, 2002 Messages 2,106 Location US How can I have a custom browse button for an input type=file?
Jan 6, 2003 1 #2 Wullie Programmer Joined Mar 17, 2001 Messages 3,674 Location GB Hi mate, You need to use a workaround which includes a hidden field. Filename: <input type=file name='file1' size='15' style='display: none;'> <br> <input type='text' name='file2' id='file2'> <img src='browse.gif' name='brower' id='brower' width='83' height='24' border='0' alt='' align='absmiddle' onclick='document.all.file1.click(); document.all.file2.value=document.all.file1.value'> Hope this helps Wullie http://www.freshlookdesign.co.ukhttp://www.freshlookdesign.comhttp://www.mailtosanta.co.uk The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell Upvote 0 Downvote
Hi mate, You need to use a workaround which includes a hidden field. Filename: <input type=file name='file1' size='15' style='display: none;'> <br> <input type='text' name='file2' id='file2'> <img src='browse.gif' name='brower' id='brower' width='83' height='24' border='0' alt='' align='absmiddle' onclick='document.all.file1.click(); document.all.file2.value=document.all.file1.value'> Hope this helps Wullie http://www.freshlookdesign.co.ukhttp://www.freshlookdesign.comhttp://www.mailtosanta.co.uk The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
Jan 6, 2003 Thread starter #3 TheConeHead Programmer Joined Aug 14, 2002 Messages 2,106 Location US thanks Upvote 0 Downvote