i want to be able to have a button browse that allows the user browses for the file that he want to upload, like a file chooser. Is it possible? please advice.
Sure, this shouldn't really be in the PHP forum though dude.
HTML Code:
<input type="file" name="whateveryouwant" />
__________________ A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
as in when the user click browse button, the file chooser will pop up n allows the user to choose the file he wants. i thought the field can only be allowed to type in the direct path of the file then upload the file.
There is not such simple code you can put in just to simply upload the file. The html snippet that i posted and pencer's post will help you out.
__________________ A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE