Hi thanks for all the tips and suggestions made by the above three posters. 
But unfortunately I'm still too newbie to translate and implement your
thoughts into my own application.

Problem 1.)
When the repliers talk about "Elements" and "Selectors" then I get somewhat
confused as to which files and what code portions that is talked about
specifically.  I have a very weak understanding of elements and selectors
you see.
______________________________________________________________

Problem 2.)
Since I'm a total ZF and PHP newbie. 99% of my test application is purely
based on Akrabats 1.9 tutorial.
http://akrabat.com/zend-framework-tutorial-18/

And I'm guessing that the relevant files for this Zend_Form_Element_Select
problems are these?

class Form_Album extends Zend_Form 
http://pastebin.com/kik5kHXE 

IndexController.php
http://pastebin.com/ACKQtkEt


And it seems like Akrabat used the "$form->populate($formdata);" way to
refill my form with previous database data.  Which he wrote in the
IndexController file and editAction() part.
______________________________________________________________

Problem 3.)
Since my form uses Peacocksuit.com's way to list every option with foreach. 
Then I guess it's this part that's missing in my IndexController and
editAction() part where the form gets refilled with previous database data.
But I'm not sure how to fit this into the equation?
______________________________________________________________

These might be helpful or not! :-P

class Model_DbTable_Albums2 extends Zend_Db_Table_Abstract 
http://pastebin.com/0yG0dgh7

http://zend-framework-community.634137.n4.nabble.com/file/n2263393/2re45zc.jpg 

http://zend-framework-community.634137.n4.nabble.com/file/n2263393/2zthjl0.jpg 

http://zend-framework-community.634137.n4.nabble.com/file/n2263393/25q9c0w.jpg 

http://zend-framework-community.634137.n4.nabble.com/file/n2263393/3013mdh.jpg 

http://zend-framework-community.634137.n4.nabble.com/file/n2263393/b5kun4.jpg 



-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Form-Element-Select-preselected-drop-down-list-problem-tp2263262p2263393.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to