SageFix. LetsFix!  
Current Location : Home > Web Development > PHP > Zend Form : ->setMultiOptions() Help Share/Save/Bookmark    

Main Menu
SageFix - Let's Fix

Board Categories
    Web Site Designing
- Graphics
    Web Development
- .NET
- Classic ASP
- JavaScript
- PHP
    WebSite Management
- Promotion Techniques
- Search Engine Optimization
    Databases
- MySQL

Tutorials

Database Connection Strings

  Contact Us


 1 - 4 of 4 [Total 1 Pages]  
Zend Form : ->setMultiOptions() Help      Jun 2, 2009, 00:42 1
  
->setMultiOptions($ExistingArray)
Code:
<option value="0" label="Select Genre">Select Genre</option>    <option value="1" label="Adventure">Adventure</option>    <option value="2" label="Biography">Biography</option>    <option value="3" label="Business">Business</option>
... and so on. Adventure, Biography and Business being in my $ExistingArray.

How can I set the value to be the same as the Option / Label rather than a numeric value?

 
      Jun 2, 2009, 14:56 2
  
Reworded the question. I was very tired...

 
      Jun 2, 2009, 15:49 3
  
Use an associative array.

ps- you can always look at the source code if you have trouble finding it in the documentation.

 
      Jun 11, 2009, 01:16 4
  
Im still having trouble with this, looking through the zend frameworks source is a little rough. Anyone have any experience with this?

 
 1 - 4 of 4 [Total 1 Pages]  









Subscribe to our mailing list
email


Current Location : Home > Web Development > PHP > Zend Form : ->setMultiOptions() Help Share/Save/Bookmark    

Development problem? SageFix is completely free -- paid for by advertisers and donations. Click here to Contact Us If you have any query. Enjoy!
Request processed in 7.0E-5 seconds Home - Contact Us - Terms Of Service - Privacy Policy - Copyrights - Top
Advertisements do not imply our endorsement of that product or service.
Current server time now is 06-Sep-2010 07:01:49
Copyright © 2009 Sagefix Inc. All rights reserved.
Powered By SageFix