Question
uploading file
I am creating an upload form. One of the fields is a file. It does not seem to be working though. The file is not being uploaded. here is my code:
form:
<input type="file" name="upload" id="upload" size="48" value="<?php if($flag) { echo $_FILES['file']['name']; } ?>" />
php:
move_uploaded_file($_FILES["upload"]["tmp_name"], "http:/mysite.com/uploads/");
anything that I'm missing?
