I want to have image button for "browse" and "upload"
I have textbox using the following code:
CSS
.uploadpathdiv { margin:0; height:44px; width:464px; background:url('images/img-upload.png') no-repeat bottom; }
.uploadpath { background:none; border:none; width:400px; height:40px; margin:0; padding: 2px 7px 0px 7px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; }
HTML
<div class="uploadpathdiv">
<input class="uploadpath" name="path" type="text" />
</div>
<img src="/themes/scaccarium/images/button-upload.png" />
<img src="/themes/scaccarium/images/button-browse.png" />
The image code is for both "browse" and "upload" button.
Please help me to correct the above code so that when i press the browse button i get "file selection option" as you see when you use . Secondly, the path of the file must be shown in the textbox above.
Thirdly when i press the upload button the file should be uploaded