Re: Questions: Uploading an unknown number of files with Quickform
| From: | Christian Kapitza | Date: | Sun, 25 Feb 2007 09:34:52 +0000 |
| Subject: | Re: Questions: Uploading an unknown number of files with Quickform | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26674@lists.php.net to get a copy of this message | ||
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. Thanks a lot, Christian Kapitza