View Full Version : Help adding browse button
7up407
04-18-2006, 03:18 AM
ok so i am trying to add a browse button. What i want it for users to be able to upload a picture and it show up on another page such as the homepage. I have the browse button code, what do i need to do from here?
<FORM ENCTYPE="multipart/form-data" ACTION="check.php" METHOD=POST>
Upload this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File"></FORM>
djr33
04-18-2006, 04:01 AM
type=file makes it a browse button.
that's the insanely easy part compared to the rest. don't be too daunted, but that's just the html side of things... php will do the rest.
more info here:
http://us3.php.net/manual/en/features.file-upload.php
7up407
04-18-2006, 10:57 PM
Ok thanks i added the codes. Now i have everything set up and when i add the image it says successful but the image on the page shows as a box with an X in it, but it shows the image uploaded on my control panel...whats wrong?
Look at this page and see why its not working please
http://runescapeacademy.com/gallery.php
Your site is severely messed up, in Firefox (http://www.twey.co.uk/files/badrunesite.jpg) at least.
7up407
04-19-2006, 12:05 AM
Messed up? It looks fine to me. What looks messed up, if you can send a picture....
I did. I linked it in my last post.
7up407
04-19-2006, 02:27 AM
Oh this is what it looks like to me
http://img68.imageshack.us/img68/8097/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa6.png
I didn't need to know that; you did :) Which browsers did you test it in?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.