Form Input File type and Database Value
Not sure if that was the best Title in the world but I hope this part gives you a clearer understanding of what my question is.
Basically I need to send a File using a Form to the folder "uploads" from page 1
I then go to page 2
I then need to then send the same file to the database from page 2
Is there a way on page 2 to define the Value as say Value="upload/"
?
I tried this way but it did not work.开发者_如何学编程
How can I make the value a file which is in a folder in my server
Or is there another way to do is like past the file in a POST to the next page ?
Put the name of the file in a $_SESSION
variable, say $_SESSION['curfile']='myfile.ext';
When processing the 2nd page, get the file name from the $_SESSION
and store it in the database.
精彩评论