Forum Moderators: mack

Message Too Old, No Replies

Browsing folder on pc

         

faith580

5:37 pm on Nov 6, 2006 (gmt 0)

10+ Year Member



im creating a website that allows the visitor to browse for items on the hard drive and upload them so when they hit send it goes to the email i have put it.

i know that i set up a FORM and enter all the things i want, including the BROWSE button. but is there some special code that i have to put behind that BROWSE button for it work?

eelixduppy

9:08 pm on Nov 6, 2006 (gmt 0)



It should look something like this:

<form action="filehandler.php" method="post" [b]enctype="multipart/form-data"[/b]>
...blah blah blah
<input type="file" name="file_upload" />
<input type="submit" value="Upload!" />
</form>

The only thing extra that is needed when dealing with file uploads is the enctype that is bold above.

Good luck!

faith580

9:23 pm on Nov 6, 2006 (gmt 0)

10+ Year Member



ok cool. i will try that. for some reason i thought it had to be like alot of extra coding.

thx