简体   繁体   中英

Zend Form from simple html

My task is to create a Zend Form from the next Html:

<form method="post">
   <h3><a href="">link1</a></h3>
   <div>
      <input type="text" name="name1">
   </div>
   <h3><a href="">link2</a></h3>
   <div>
      <input type="text" name="name2">
   </div>
</form>

At the very least you'll have to remove DtDd Decorator, set the Html Decorator tag to div and remove the Label Decorator.

I suggest you make the form as best you can then work from that, at least give it a go.

In the worst situation you will have to write your own form elements to replicate this HTML.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM