tomda

msg:3638345 | 9:18 am on Apr 30, 2008 (gmt 0) |
A/ Upload the pic in a temp directory B/ Display the thumbnail of the pic next to the form where user can enter title, date and description C/ Upload the pic into your final directory and thumbnail directory, delete the one in your temp directory. D/ If successfully done, update the database. Although I don't usually drop source code to stranger :) but I just made an exemplified version for someone else, so if you also want to see it, PM me. The three step are all written in the same file (therefore same URL) and use an upload_pic class... Works like a charm ! Tomda
|
Robert Poole

msg:3638377 | 10:07 am on Apr 30, 2008 (gmt 0) |
Thanks for this but I'm not sure it's exactly what I'm looking for. I'm really just interested in a "bridging" method to pass the file information forward one step through the form before running the upload script in a third step; maybe something equivalent to a hidden file to just a way passing the image information so it can be uploaded later.
|
dreamcatcher

msg:3638585 | 2:34 pm on Apr 30, 2008 (gmt 0) |
You can store relevant data in sessions if you want to and access the session vars you need on each page and then process all at the end. The benefits of sessions are good if you have an instance where you need people to go back to previous pages. dc
|
Robert Poole

msg:3638607 | 2:50 pm on Apr 30, 2008 (gmt 0) |
sounds like a distinct possible, so what would i need to put in the session? just the file name and/or temp file name, and/or other stuff?
|
|