Just search Google for some tutorials, here are some that came up for me. http://www.tizag.com/phpT/fileupload.php http://www.htmlgoodies.com/beyond/webmaster/article.php/3560181
Hello, You need an html form e.g <form action="upload.php" method="POST" enctype="multipart/form-data"> <input type="file" size="40" name="image_file" maxlength="50"> <input type="Submit" value="Upload"> </form> HTML: and a php file upload.php (this is a dumb insecure sample, you will have to add more code to make it safe) <?php // Where to upload the file $foldername = '/uploads/'; // Copy the file to a fixed location copy ($_FILES['image_file']['name'], $foldername . $_FILES['image_file']['name']); echo 'Thanks, your file is uploaded.'; ?> PHP: If you need more details, please, let me know..
Yeah, this is really insecure. Don't use it like that in public. And on a further note, use move_uploaded_file() instead of copy(), it's made for this purpose...