doumei4964
2015-07-08 09:48
浏览 27
已采纳

Zend_Form输入数组

Using Zend_Form, how would I create form elements like this:

<input type="file" name="file[]" value="" />
<input type="file" name="file[]" value="" />

If i don't know how many files user want to upload. Now the settings for the input type="file" look

form.elements.file.type = "File"
form.elements.file.options.required = true
form.elements.file.options.label = "File"
form.elements.file.options.validators.extension.validator = "Extension"
form.elements.file.options.validators.extension.options.extension = "gif,jpg,jpeg,png,swf"
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题