PHP: Création automatique d’un menu ‘select’ HTML

Author:


{filelink=12503}

';

    $selected_options = $options;
    if ($multiple) {
        foreach ($selected[$nom_control] as $val) {
            $selected_options[$val] = true;
        }
    }
    else
    {
        $selected_options[ $selected[$nom_control] ] = true;
    }

    foreach ($options as $option => $label) {
        print '


';
    }
    print '

';
}

$pays=array('Paris','Londre','New York','madrid');
$nom_select='pays';
$elem_select=1;
input_select($nom_select,$elem_select,$pays,true);

?>

Leave a Reply

Your email address will not be published. Required fields are marked *