Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="file" name="uploadedfile" id="uploadedfile" />
- <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
- <input type="image" src="save.jpg" />
- include 'db.php';
- $file = basename($_FILES['uploadedfile']['name']);
- $target = "uploads/".$file;
- if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target))
- {
- echo "<strong>Success:</strong> File uploaded";
- }
- else
- {
- echo "<strong>Error:</strong> Could not upload file";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement