Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7937257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:28:56+00:00 2026-06-03T22:28:56+00:00

I would like to have a form that gets output into a table. The

  • 0

I would like to have a form that gets output into a table. The table I’m wanting would be formatted like the following

<table>
 <thead>
    <tr>
      <th>Name</th>
      <th>ROI</th>
      <th>Hours</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Equipment Name</td>
      <td>Equipment's ROI Element</td>
      <td>Equipment's Hours Element</td>
    </tr>
  </tbody>
</table>

The ROI Element’s name will be “roi” plus “equipment[‘id’]”. Same for hours, just replace “roi” with “hours”. I would need there to be no label for either elements and somehow output “equipment[‘name’]” into the first cell. I can figure that part out, but how do I get elements into a table like that? I’ve looked at some tutorials, but they don’t seem to cover everything I’m trying to do.

The following link is another question I posted about how to add the elements to the form. The accepted answer is now the way the elements are being added.

Zend_Form Array Based Element Setup and Retreival

So my question ends up being, how do I accomplish this form layout?

Edit

I did find this tutorial and was able to follow it. I removed the labels from my elements, as I don’t want those in the final product. Now each element is in its own row. How do I set two elements to be in the same row? I also still don’t understand how to display the equipment’s name inside the same table as the form. Any ideas?

So to clarify, my setup now is:

<table>
  <tbody>
    <tr>
      <td>Equipment's ROI Element</td>
    </tr>
    <tr>
      <td>Equipment's Hours Element</td>
    </tr>
  </tbody>
</table>

As you can tell, there’s no head, as I don’t know how to do that, and no Equipment Name, and the elements are not grouped into a single row.

The other option is to go this route.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:28:58+00:00Added an answer on June 3, 2026 at 10:28 pm

    if you could, i would recommend not using tables. even if you want a table like layout, it’s very easily accomplished with css and is much cleaner and very reusable throughout your application.

    with that said, zend forms will add decorators that you will need to remove if they aren’t needed. most people simply remove them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php form that gets validated through javascript. I would like to
I would like to have a form that can submit to two different action
I have a form that I would like to style. specifcally I would like
I have a form that edits an instance of my model. I would like
I would like to have an aspx page that contains something like.... <form id=form1
I have an In-house windows form app that I would like to use Spell
I have a form with two selectfields. I would like that when something is
I have a button that I would like to disable when the form submits
I have 5 links that are on the same form but I would like
I have an API in the form of a JAR that I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.