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

  • Home
  • SEARCH
  • 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 8011785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:07:01+00:00 2026-06-04T19:07:01+00:00

I’m developing on a really bad code-base that is loosely formed around Zend Framework

  • 0

I’m developing on a really bad code-base that is loosely formed around Zend Framework (PHP) so ORMs can’t be used and neither can any other framework. I have attempted using Zend_Form but I found the documentation too sparse (I have developed small forms with Zend_Form but nothing of this size).

I need to create a long form (6 pages long). The user will be able to switch between each step as they please with no validation at all until they attempt to submit the form (not a good idea in my opinion but that’s what the spec says).

At the end of the process, the form will be validated and then the data will be split into a number of different tables in the database. Oh and just to make things fun: there are three versions of this form, all with slight alterations on fields, nothing major. They all store the data in the same tables.

So, what’s the best way to go about doing this? How should I structure it and what would you do if you had to build such a form? I’m writing it in PHP but would like to hear responses from programmers of other languages too. Also if there are any libraries or tools for building such forms, I’d like to hear those as well.

  • 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-04T19:07:03+00:00Added an answer on June 4, 2026 at 7:07 pm

    Never done this using ZF, never done such form with validations only when submitting last step, never done a multistep form where user can jump from step to step as they want (I mean jumping from 1st step to 4th, e.g.).

    What I did was a 5 step form (where there could be more 3 substeps within 4th step). User can follow the steps one step at a time or go back one step at a time. Each step is submitted and validated – until it is valid user cannot jump to the next step but he still can go back – the values inserted are stored within session. I have created a model (structured class containing other subclasses) so after each step is submitted and valid the data is set into this model that is stored within session.

    If You need a really big form where user can jump through steps as he wants, I would consider two ways:

    1. Create just one form with steps visually divided into a tabs – each tab will contain only related fields and only the last tab will contain the submit button. Other tabs will contain a “next” button that will only open the next tab. There could be a possible problem with the number of fields – You can send only limited amount of fields through POST and even more limited amount of fields through GET (sorry, don’t know the numbers). Then after submit is invoked a validation takes place and then You can just fill the DB tables…
    2. Create a form for each step. Create a model that will store the data. Each step will submit and only store the data into that model (except the last step – this will also invoke validation of inserted data) – while model will be saved within session. When validation fails You will redirect user to the first invalid step, display a message at what steps the data is invalid (also visually make that steps invalid). If the validation is OK, take the model and fill the DB tables…

    Cannot tell You how difficult will both ways be as I didn’t do such thing using ZF… And hope never will have to.

    I would also consider talking to client and explain that validation only at the very last step is kinda foolish and user un-friendly…

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

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.