tracy Posted December 12, 2006 Share Posted December 12, 2006 Is there a way to upload files giving the browser the option of using the browse button to select a specific file from the computer? If so, a tutorial or some brief instructions would be great.I am using a MySQL database and will be inserting the photos (jpeg) into it...for recall and display later (thumbnailed)...I feel I have a grasp on the insert and display portion, just not the browse button feature...thanks. Quote Link to comment Share on other sites More sharing options...
trq Posted December 12, 2006 Share Posted December 12, 2006 Have you tried searching google for [i]php file upload tutorials[/i]? I got 1,330,000 hits. Quote Link to comment Share on other sites More sharing options...
Psycho Posted December 12, 2006 Share Posted December 12, 2006 You just use an input field with type="file"However, you may want to consider only saving the location & name of the file in the database. Quote Link to comment Share on other sites More sharing options...
tracy Posted December 12, 2006 Author Share Posted December 12, 2006 Yes, but the several tutorials that I tried had no info on the browse thing...I was hoping for a few other keywords or a specific tutorial that someone knew worked...thanks. Quote Link to comment Share on other sites More sharing options...
tracy Posted December 12, 2006 Author Share Posted December 12, 2006 and this will automatically bring up the browse button, right? thanks.[quote author=mjdamato link=topic=118359.msg483565#msg483565 date=1165955540]You just use an input field with type="file"However, you may want to consider only saving the location & name of the file in the database.[/quote] Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted December 12, 2006 Share Posted December 12, 2006 Not to be mean, but it'd take about as long to create a form with a type="file" input and test it yourself as it did for you to ask if it's what you wanted.;^] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.