[FONT=”Tahoma”]I have a file upload field in my update form.
How do I get the value of what was put in the field (the file path), so that it can be re-inserted into the file field via php?[/FONT]
[code=php]$rfile = basename( $_FILES['file']['name']) ; $target_path = "files/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "upload success";} else{ echo "error";} [/code]
Help @mero spread the word by sharing this article on Twitter...