How to create a browse button to upload an image path into a MYSQL database?

Sam Q

New member
I'm making a website in Dreamweaver that allows users to upload image paths into a database(via a form).The images are displayed on another page. It works perfectly, but you need to type out the image path manually... I need to be able to add a browse button to this somehow. I'm thinking that something along the lines of <input type="file"... needs to be used, and this wouldn't be a problem if I were uploading the images to the database instead of just the path...?

Can anyone tell me exactly how I'm supposed to do this? Can it even be done?
 
Back
Top