How to browse for a file by clicking a button?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drifter
Forum Newbie
Posts: 4
Joined: Mon Oct 13, 2003 6:25 am

How to browse for a file by clicking a button?

Post by drifter »

Hi all

So does anyone know how to invoke that Open file window so user can browse his drive and select a file and then the path and name of the file will be written in a text box on a form.

thanx for help

d.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

<input type="file" name="the_file_the_user_selected">
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

and also, this is html, so u dont need it to necessarily be echoed or be put in ur php tags
Post Reply