News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rich Buggy's Blog:
Dynamic forms using Zend_Form
June 24, 2009 @ 12:05:24

Rich Buggy has posted a new tutorial to his blog looking at the Zend_Form component of the Zend Framework and how you can have it cooperate with the generation of more dynamic forms.

While most forms contain fixed fields there are occasions when you need a form to be dynamic and adjust itself based on user input. The adjustment could be as simple as altering the options in a drop down list or as complex as adding/removing fields. In this post I'm going to cover how to create a dynamic form using Zend_Form and jQuery. I'll use the example of a registration form that prompts the user for their country and state.

He extends the Zend_Form component to make his own registration form with two fields - country and state. Combined with the jQuery code to pull in the JSON formatted state information, the form updates the States list as the country is selected. Complete code is provided.

0 comments voice your opinion now!
json jquery zendform zendframework


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Zend Framework Dispatch Workflow Diagram

Blancer.com: 10 Compelling Reasons to use the Zend Framework

Matthew Turland's Blog: Zend_Form and Zend_Loader_PluginLoader SNAFU

Zend Developer Zone: Zend Webinar Wednesdays: Zend Framework 1.0 - An Overview

Raphael Stolt's Blog: Zend Framework 1.8 Web Application Development book review


Community Events











Don't see your event here?
Let us know!


database hack security unittest language package component facebook performance introduction hhvm podcast framework release symfony2 composer install example application project

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework