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 7910451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:52:23+00:00 2026-06-03T12:52:23+00:00

Okay this might sound simple but there’s a catch. I’ll try and explain the

  • 0

Okay this might sound simple but there’s a catch. I’ll try and explain the situation.

I have a page wich is build with a layout and in the center there’s a view with 2 buttons and a normal form. The 2 buttons are to switch between two input forms. When the submit is pressed both forms are submitted. The first form is for general information and the second one is used to upload an image along with the information if so desired.

Now to avoid the question why not use one form? it’s a request to keep the two seperated in this manner.

So i was considering going with 2 views where the top 2 buttons would act like a submit, creating a POST request with the form data but not actually submiting it to the database. And then redirecting towards the second view where you can upload images.

And then when the actual submit button is pressed i want all the data collected to be written into the database.

Basically it’s like a page with 2 Tabs with a form each and only 1 submit button to submit the forms on both tabs.

I just can’t get my head around how to create those 2 buttons to store the post data and then have the ‘final’ submit button use the previous post data and then other form data to create a new combined post data to store in the database.

Anyone have an idea how to accomplish this? Am i approaching this correctly or is there a simpler or cleaner method to doing this?

Thanks in advance!

  • 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-03T12:52:25+00:00Added an answer on June 3, 2026 at 12:52 pm

    You have a number of options here, one option is to create one form and add your two seperate sections as SubForms, i.e. instances of Zend_Form_SubForm. Then you can style the forms separately, tab them but keep one submit button for both. Also when you submit, the forms data will be separated into an array element for each of the sub forms.

    you can see more about this here:

    http://framework.zend.com/manual/en/zend.form.advanced.html#zend.form.advanced.multiPage

    another solution i’m fond of is using an action helper to split the process of adding the forms into two pages, similarly to the url above but storing form information inside a session object until both have been validated and then processing both forms at once.

    http://framework.zend.com/wiki/display/ZFPROP/Zend_Controller_Action_Helper_Multiform+Proposal+-+Simon+Mundy

    http://framework.zend.com/wiki/pages/viewpage.action?pageId=42130

    hope this helps.

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

Sidebar

Related Questions

Okay this question is very simple: I have a facebook page, and a website.
Okay this may be a simple question but I have yet to come with
Okay, I kinda asked this question already, but noticed that i might have not
Okay, so this might be kind of strange but here's the question: I have
This might be a n00bish question, but whatever. Is okay to use exceptions for
Okay, I think I might be over-complicating this issue but I truly am stuck.
Okay, this might be a very silly beginner question, but: I've got an ClassA,
Okay, i have a simple button on my page (MyPage) which fades out the
okay this might be a pretty lame and basic question but its stuck in
Okay this is probably a rookie question, but I have never done GUI programming

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.