Ajouter un espace réservé HTML dans Zend_Form

J'utilise Zend_Form pour un formulaire de request utilisant ce code:

 class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } class Form_ApplicationForm étend Zend_Form class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } { class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } Fonction publique init () class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } { class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } $ this-> setAction ('/ application / new') class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } -> setMethod ('post') class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } -> setAtsortingb ('id', 'application'); class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } $ name = new Zend_Form_Element_Text ('nom'); class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } $ name-> setLabel ('Votre nom') class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } -> setRequired (TRUE) class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } -> addValidator ('alpha', FALSE, tableau ('allowWhiteSpace' => true)); class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } $ email = new Zend_Form_Element_Text ('email'); class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } $ email-> setLabel ('Adresse e-mail') class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } -> setRequired (TRUE) class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } -> addValidator ('Adresse de courrier électronique'); class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } $ this-> addElements (array ($ nom, $ email)); class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } } class Form_ApplicationForm extends Zend_Form { public function init() { $this->setAction('/application/new') ->setMethod('post') ->setAtsortingb('id','application'); $name = new Zend_Form_Element_Text('name'); $name->setLabel('Your Name') ->setRequired(TRUE) ->addValidator('alpha', FALSE, array('allowWhiteSpace' => true)); $email = new Zend_Form_Element_Text('email'); $email->setLabel('Email Address') ->setRequired(TRUE) ->addValidator('EmailAddress'); $this->addElements(array($name,$email)); } } 

J'ajoute un file flash uploader (swfupload) à ce formulaire qui nécessite un extrait HTML pour fonctionner, l'extrait ressemble à ceci:

 <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <div id = "swfupload-control"> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <p> Télécharger jusqu'à 5 files d'image (jpg, png, gif), chacun ayant une taille maximale de 1 Mo (Utilisez Ctrl / Shift pour sélectionner plusieurs files) </ p> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <type d'input = "button" id = "button" /> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <p id = "queuestatus"> </ p> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <ol id = "log"> </ ol> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> 

Quelle est la meilleure façon d'insert ceci afin qu'il se trouve quelque part dans la <form> que j'insère dans mon controller comme ceci:

 public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } fonction publique newAction () public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } { public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } $ form = new Form_ApplicationForm (); public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } if ($ this -> _ request-> isPost ()) { public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } $ data = $ _POST; public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } si ($ form-> isValid ($ data)) { public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } /// manipuler datatables ici public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } $ form-> fillate ($ data); public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } } public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } } public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } $ this-> view-> form = $ form; public function newAction() { $form = new Form_ApplicationForm(); if($this->_request->isPost()){ $data = $_POST; if($form->isValid($data)){ /// handle data here }else{ $form->populate($data); } } $this->view->form = $form; } 

Existe-t-il un moyen d'append un espace réservé ou similaire dans Zend_Form , ou cela devrait-il être fait à l'aide d'un décorateur ou quelque chose comme ça?

Merci.

Vous devriez écrire votre propre élément pour cela, par exemple My_Form_Element_SwfUpload avec un rendu. Voir ces tutoriels:

  • Le plus simple décorateur Zend Form
  • Comment décorer les couches
  • Rendre Zend Form Decorators individuellement
  • Création d'éléments composites

La manière la plus simple est de le faire dans la vue:

En echo chaque élément, vous pouvez imprimer son html. Voici une façon de le faire:

 <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <form id = "<? = $ this-> form-> getId ()?>" action = "<? = $ this-> form-> getAction ()?>"> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <? <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> foreach ($ this-> form as $ element):?> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <? = $ element?> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <? <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> if ($ element-> getName () == 'email'):?> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <div id = "swfupload-control"> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <p> Télécharger jusqu'à 5 files d'image (jpg, png, gif), chacun ayant une taille maximale de 1 Mo (Utilisez Ctrl / Shift pour sélectionner plusieurs files) </ p> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <type d'input = "button" id = "button" /> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <p id = "queuestatus"> </ p> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <ol id = "log"> </ ol> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> </ div> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <? <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> endif?> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> <? <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> endforeach?> <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>"> <? foreach ($this->form as $element): ?> <?= $element ?> <? if ($element->getName() == 'email'): ?> <div id="swfupload-control"> <p>Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files)</p> <input type="button" id="button" /> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <? endif ?> <? endforeach ?> </form> 

Ce que cela fait, c'est qu'il imprime tous les éléments et met tout ce que vous avez après le champ du email . Si vous ajoutez ou supprimez un champ du formulaire, ce code continuera à fonctionner (bien sûr, il échouera si vous supprimez le champ du email ).