Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading a file and storing it

Status
Not open for further replies.

evosix

Programmer
Joined
Apr 27, 2003
Messages
9
Location
AU
Hi all,

Ive been having alot of problems trying to get "Client" to upload a file to a folder in the server.
Ive checked numerous websites and even the php site but still seem unable to get it right.

Can anyone please supply me with the PHP code to accept/store the file??

Here is my HTML code for the form to select the file:
Code:
<form action=&quot;uploadImage.php&quot; method=post enctype=&quot;multipart/form-data&quot;>
<input name=&quot;userfile&quot; type=file size=&quot;35&quot;>
<input name=&quot;submit&quot; type=submit value=&quot;Upload!!&quot;>    
</form>

I wont bother posting my php coz if i pick a file, it still thinks empty($userfile) == true!!
Im going insane.

Thankyou for any help given!! :)
-evosix-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top