Re: Questions: Uploading an unknown number of files with Quickform
| From: | Justin Patrin | Date: | Sun, 25 Feb 2007 08:59:01 +0000 |
| Subject: | Re: Questions: Uploading an unknown number of files with Quickform | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26673@lists.php.net to get a copy of this message | ||
On 2/24/07, Christian Kapitza <ub0c@rz.uni-karlsruhe.de> wrote:
Pear package: HTML_Quickform Pear package: HTML_QuickForm_Renderer_Tableless Hi, I'm using Quickform for my Forms and I'm very happy with it's functionality so far. This time I want to have a form with mostly text-fields and the possibility to upload 0,1,2,3,... (an undetermined number of) file attachments. Also I would like to use the form to maybe later delete one of the attachments again and upload another file. I guess I would do this using a subform? but I couldn't find any code examples and no hints in the documentation about how to do this with PEAR Quickform.Why with a subform?
Could anyone help me out with a code example or link or telling me which functions I have to use.Do you plan to create your dynamic file fields with PHP (an extra submti) or with DHTML (JS)? 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. -- Justin Patrin