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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:45:25+00:00 2026-05-13T13:45:25+00:00

I am trying to submit a zend form. When I click the button to

  • 0

I am trying to submit a zend form. When I click the button to Submit the form the form doesn’t do anything (it doesn’t refresh the page either). I have the following create event page:

<?php
class Form_CreateEvent extends Form_DisplayEvent
{
    public function init()
    {
     require_once('createEventInformation.php');
     require_once('createCategoryDetail.php');
     require_once('createEventDetail.php');
     require_once('createFeeDetail.php');
        require_once('createQuestionDetail.php');
     require_once('createWaiverDetail.php');

     //parent::init();
        Zend_Dojo::enableForm($this);

     $this->setDecorators(array(
     'FormElements',
     array('TabContainer', array(
     'id' => 'tabContainer',
     'style' => 'width: 100%; ',
     'dijitParams' => array(
     'tabPosition' => 'left',
     'doLayout' => false
     ),
     )),
     'DijitForm',
     ));        

        $this->setName('createEventForm');
        $this->setAction('/admin/createevent/')
                     ->setMethod('post'); 
               // Create and Add Submit Button for Full Form
        $final_submit = new Zend_Dojo_Form_Element_SubmitButton('final_submit');
        $final_submit->setLabel('Save Event');
        $this->addElement($final_submit);


  //$subForm3 = new Zend_Dojo_Form_SubForm();
  $subFormEventInformation = new Form_CreateEventInformation(); // extends Zend_Form

  $subFormEventInformation->setAttribs(array(
  'name'   => 'eventInformation',
  'legend' => 'Event Information',
  'style' => 'height: 100%',
  'dijitParams' => array(
  'title' => 'Event Information',
  ),
  ));

  $subFormEventDetail = new Form_CreateEventDetail(); // extends Zend_Form

  $subFormEventDetail->setAttribs(array(
  'name'   => 'eventDetail',
  'legend' => 'Event Detail',
  'dijitParams' => array(
  'title' => 'Event Detail',
  ),
  ));

  $subFormCategoryDetail = new Form_CreateCategoryDetail(); // extends Zend_Form

  $subFormCategoryDetail->setAttribs(array(
  'name'   => 'categoryDetail',
  'legend' => 'Category Detail',
  'dijitParams' => array(
  'title' => 'Category Detail',
  ),
  ));

  $subFormFeeDetail = new Form_CreateFeeDetail(); // extends Zend_Form

  $subFormFeeDetail->setAttribs(array(
  'name'   => 'feeDetail',
  'legend' => 'Fee Detail',
  'dijitParams' => array(
  'title' => 'Fee Detail',
  ),
  ));

  $subFormQuestionDetail = new Form_CreateQuestionDetail(); // extends Zend_Form

  $subFormQuestionDetail->setAttribs(array(
  'name'   => 'questionDetail',
  'legend' => 'Question Detail',
  'dijitParams' => array(
  'title' => 'Question Detail',
  ),
  ));

  $subFormWaiverDetail = new Form_CreateWaiverDetail(); // extends Zend_Form

  $subFormWaiverDetail->setAttribs(array(
  'name'   => 'waiverDetail',
  'legend' => 'Waiver Detail',
  'dijitParams' => array(
  'title' => 'Waiver Detail',
  ),
  ));  

     $this->addSubForm($subFormEventDetail, 'eventDetail')
       ->addSubForm($subFormEventInformation, 'eventInformation')
       ->addSubForm($subFormCategoryDetail, 'categoryDetail')
       ->addSubForm($subFormFeeDetail, 'feeDetail')
       ->addSubForm($subFormQuestionDetail, 'questionDetail')
       ->addSubForm($subFormWaiverDetail, 'waiverDetail'); 
    }
}
?>

I have the following adminController

<?php

class AdminController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function createeventAction()
    {
        $this->view->page = 'createEvent';     
     $this->view->title = "Early Signup Administration";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createEventForm = new Form_CreateEvent();
      $request = $this->getRequest();   
     if ($request->isPost()) 
     {

   if( !$form->isValid($request->getPost() ) )
   {
       $this->view->form = $createEventForm;
       // renders view script
       return;
   }
   else
   {
    echo 'submitted2';
   }
  }
  else
  {
      $this->view->form = $createEventForm;
  }
        /*if ($this->_request->isPost()) {
            $formData = $this->_request->getPost();
            if ($formData->isValid($formData)) {
                echo 'success';
                exit;
            } else {
                $createEventForm->populate($formData);
            }
        }
        else
        {
                  $this->view->form = $createEventForm;
        }     */



    }

    public function createeventinformationAction()
    {
        $this->view->page = 'createEventInformation';     
     $this->view->title = "Add Event Information";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createEventInformationForm = new Form_CreateEventInformation();
  $this->view->form = $createEventInformationForm;        
    }

    public function createquestiondetailAction()
    {
        $this->view->page = 'createquestiondetail';     
     $this->view->title = "Add Question Detail";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createQuestionDetailForm = new Form_CreateQuestionDetail();
     $this->view->form = $createQuestionDetailForm;        
    }

    public function createwaiverdetailAction()
    {
        $this->view->page = 'createwaiverdetail';     
     $this->view->title = "Add Waiver Detail";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createWaiverDetailForm = new Form_CreateWaiverDetail();
     $this->view->form = $createWaiverDetailForm;        
    }

        public function createcategorydetailAction()
    {
        $this->view->page = 'createCategoryDetail';     
     $this->view->title = "Add Category Detail";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createCategoryDetailForm = new Form_CreateCategoryDetail();
     $this->view->form = $createCategoryDetailForm;        
    }

        public function createfeedetailAction()
    {
        $this->view->page = 'createFeeDetail';     
     $this->view->title = "Add Fee Detail";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createFeeDetailForm = new Form_CreateFeeDetail();
     $this->view->form = $createFeeDetailForm;        
    }

    public function createuserAction()
    {
        $this->view->page = 'createUser';     
     $this->view->title = "Add User";
     $this->view->headTitle($this->view->title, 'PREPEND');

     $createUserForm = new Form_CreateUser();
     $this->view->form = $createUserForm;        
    }

 public function neweventinformationAction() 
 {
    $ajaxContext = $this->_helper->getHelper('AjaxContext');
     $ajaxContext->addActionContext('neweventinformation', 'html')->initContext();

    $idEventInformationPassed = $this->_getParam('idEventInformationPassed', null);
    $idEventInformationPassed++;
    $Form_CreateEventInformation = new Form_CreateEventInformation();
    $this->view->form = $Form_CreateEventInformation->buildBlock(array('idEventInformationPassed' => $idEventInformationPassed));
 }

}
  • 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-13T13:45:26+00:00Added an answer on May 13, 2026 at 1:45 pm

    A form that doesn’t submit is usually a symptom of a missing or malformed opening <form> tag.

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

Sidebar

Related Questions

No related questions found

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.