Login Retreive lost passwordRegister
Search

Forum Index / Feedback / selectField example minor improvement

[ This topic is solved ]

  Time Spring 11 September 09 / 11:46  
Changed at 11 September 09 / 11:52
Regarding the example for the selectfield:


// the options
$browsers = array(
"0" => "-- Select --",
"__LABEL(IE)__" => "Microsoft Internet Explorer",


the first element in the browsers array should have an empty key value "" instead of "0" for the validator function to work. Otherwise the first "-- Select --" option is a valid selection for a browser.

  Johan Wiegel (Admin) 11 September 09 / 15:18  
Thnx the manual is changed

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license