Date: 08/06/01
- Next message: Guillaume Desclaux: "[phplib] Little patch"
- Previous message: Hugo Amorim: "[phplib] Multiple select"
- In reply to: Hugo Amorim: "[phplib] Multiple select"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I believe all you need to do is change this line:
> "name"=>"nomes",
to
> "name"=>"nomes[]",
This should make a PHP array you can now walk through...
-- Jesse Swensen swensenj <email protected>> From: "Hugo Amorim" <tou_aqui <email protected>> > Date: Mon, 6 Aug 2001 17:27:18 +0100 > To: <phplib <email protected>> > Subject: [phplib] Multiple select > > hello im using OOH Forms and i have a small question > > Im using thins to creat a drop down box with the info from the array > get_nomes ( the data is names from persons) > > now the question is how can i use this to chose multiple names ? > > Because if i choose 2 names i will get > nomes%5B%5D=miguel&nomes%5B%5D=hugo > > that way i cant send it to the DB like > > $sql = "INSERT INTO permissoesutilizadores > (nome,...................................) > > $name_nomes=array(); > $name_nomes=get_nomes(); > > $new_peruti->add_element(array("type"=>"select", > "name"=>"nomes", > "options"=>$name_nomes, > "multiple"=>1, > "size"=>3, > "valid_regex"=>"^[a-zA-Z_ -]+$", > "valid_e"=>"Por favor seleccione o Serviço", > "value"=>"0")); > > $new_peruti->show_element("nomes"); > > > -- > Abbestellen mit Mail an: phplib-unsubscribe <email protected> > Kommandoliste mit Mail an: phplib-help <email protected> >
-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>
- Next message: Guillaume Desclaux: "[phplib] Little patch"
- Previous message: Hugo Amorim: "[phplib] Multiple select"
- In reply to: Hugo Amorim: "[phplib] Multiple select"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

