"Browsing" for Files

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
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

"Browsing" for Files

Post by Jim »

Does anyone know where to find information on how to create one of those popup boxes that lets you look through your computer for a file?

Better yet, if you know how, feel free to tell me ;) Thanks guys!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

very simple ;)
<input type="file" name="whatever"/>
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Post by Jim »

Something inside me hates how easy that is...

The other part loves it :D Thanks!!!
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Post by Jim »

Now the question...

How do I only allow certain file types to be uploaded?

*edit*

Gonna try eregi();

WML! :)
Post Reply