Re: Questions: Uploading an unknown number of files with Quickform
| From: | Justin Patrin | Date: | Sun, 25 Feb 2007 19:07:34 +0000 |
| Subject: | Re: Questions: Uploading an unknown number of files with Quickform | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26677@lists.php.net to get a copy of this message | ||
On 2/25/07, Christian Kapitza <ub0c@rz.uni-karlsruhe.de> wrote:
Hi Justin, thank you for your help! If you use PHP then QF will know about the file fields already. If you use JS it won't. Either way you can just loop through your submitted file fields and process them. Yes I would like to use QF: I want the Form to reload every time the user uploads 1 file by using an "Add File" Button. Then after uploading all the files he wants to attach, he can press the "Submit" button and only then is the whole data written to my database (my process_form function is called). Basically: how can I reload the page (with all the filled values), process changes in just one (file-) field, but not yet send all the values to the database? I guess it should be a problem that has been solved many times, but I cannot tell which API-functions to use. I haven't fully grasped which states a form can have.If you want to do it that way you'll have to move the files to a temporary location and keep track of them until the user clicks "Submit" for processing. This isn't something that QF can do for you itself, you'll have to implement this yourself. -- Justin Patrin