Helpful Information
 
 
Category: Beginner Programming
how do I upload files on my page

I want to be able to upload pictures to my server on an admin form along with a lot of info about the item that the picture is of. I will then need to store the address of the newly uploaded file in mysql. I am using a webserver (phpwebhosting). I will be constantly uploading many items into my database like this so I need a convenient way like this to do it. I would prefer using php if possible since its what I am learning. please help!!??

[This message has been edited by qweqwe (edited May 19, 2000).]

read webmonkey.com tutorials on php/mysql. that should give you some idea how to begin.

peace on earth

a.

Thanks, but I figured it out a while ago. Just incase anyone is trying to figure it out (since i can't find any other info on it on Devshed.com) this is what I used:

in form file:

<FORM action=upload.php method="post" enctype="multipart/form-data">

Picture:<INPUT type="file" name="picture">

</FORM>

In (upload.php) file that sends the file:

copy($picture, "../images/$num.jpg");


(..images/$num.jpg can be whatever you want to call the file)










privacy (GDPR)