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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:29:20+00:00 2026-05-24T13:29:20+00:00

I have created a form with zend form. I process the data in one

  • 0

I have created a form with zend form.
I process the data in one action and then redirect to the another action.

So in case of an error I redirect to the last form, if there was no error I redirect the user to another url.

So when isValid() fails I use the getMessages() (the getErrorMessages doesn’t return anything) to get the messages, serialize it, place it in a session property and then redirect to the form page. My problem is now setting those error msg’s in the form to let the user know there was a problem.

I have tried this

$form->setErrors(unserialize($this->_session->form_error_msgs));

But this doesn’t do anything. What do I have to do to display the error msgs next to the fields??

  • 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-05-24T13:29:21+00:00Added an answer on May 24, 2026 at 1:29 pm

    you should add the error to the field, for example

     $form->fieldname->addError('error message');
    

    your code might not be working because you haven´t configured the form decorators…

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

Sidebar

Related Questions

I have a created a zend form, works fine along with validations. Is there
I am a bit confused. I have created a simple form with a one
hi i am using zend form , i created a Zend_Form_Element_Radio element that have
i have created a form with zend framework and this form have some elements
I have created a zend form. I have added some elements. I have put
About to create a form using Zend Form, all the form elements should have
I have a Form element: $Form=new Zend_Form; $Form->setAction($this->view->url(array('controller'=>'auth','action'=>'create'),null,true)) ->setMethod('post') ->setAttrib('id','auth-form') ->removeAttrib('enctype'); As can be
I have created an form validation using ajax/php. Each text box is validated using
I have created a form that is used for both adding and editing a
I have created a non-form c# program that uses the NotifyIcon class. The text

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.