Login Retreive lost passwordRegister
Search

Forum Index / Feedback / Max values by multiple select

[ This topic is solved ]

  virtual female 24 September 05 / 11:41  
Hi,

Idea for multiple select: add a parameter in which the user can set the maximal values a user may select.

Regards!
Erica

  Teye Heimans (Founder) 25 September 05 / 12:19  
This can be done by making a own validation function:


<?php

function checkSelectedItems$items ) {
    if( 
sizeof$items) > ) {
        return 
"You can only select 5 items!";
    } else if( 
sizeof$items ) == ) {
        return 
"You have to select an item!";
    }
}

?>

  Top


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