Ok, a number of errors here..
1.) In order to be able to select multiple items in the select box, you must include the multiple='multiple' attribute.
<select name='artSelectionne[]' style='width:300px;' size='10' multiple='multiple'>
...
2.) $artSelectionne = array(); <- this line isn't neccessary.
3.) $artSelectionne[]=$_POST['artSelectionne[]']; <- This is wrong for a couple of reasons. First, you are using the empty bracket notation to create a new indice in the $artSelectionne array then you are assigning $_POST['artSelectionne[]'] to that array, $_POST['artSelectionne'] is the correct way to reference the array, and the empty bracket notation isn't neccessary on either variable. This is a common mistake. Empty bracket notation is used to create a *new* numerical offset entry in an array. Because of the empty bracket notation in the select field's name, artSelectionne, becomes a multi-dimensional array when passed to the server.
Page 2
$action=$_POST['art_show'];
function show_article()
{
for ($i = 0; $i < count($_POST['artSelectionne']); $i++) {
echo $_POST['artSelectionne'][$i];
}
}//end show_article
You are creating a lot of varibles that you don't need. The $_POST array is a superglobal array, meaning that it may be accessed in any scope, and as such, there would be no need to import it. If the variable isn't gauranteed to be called $_POST['artSelectionne'], then, IMO, it would be better to pass that variable as an argument to the function which makes your code less obfuscated.
You're placing all of the previous selections in
one option?
<option value=0> <?php show_article(); ?></option>
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::