Hi,
- I want pass multiple values in select box (which is populated by another drop down box) and display them in the another page in php (in one select box).
- How I could keep these values, because when users want modify these values, they can come back on page 1 to add more values. Actually when I return on page 1, all values that I add in the select box are deleted.
It's urgent, I tried many times but it didn't work.
Thanks for your help.
Page 1
CODE
<input type="HIDDEN" name="art_show" action="">
<select name="artSelectionne[]" style="width:300px" size=10>
<option value=0></option>
</select>
Page 2
CODE
$artSelectionne = array();
$artSelectionne[]=$POST['artSelectionne[]'];
$action=$POST['art_show'];
function show_article()
{
Global $artSelectionne;
$num_art=count($artSelectionne);
for ($i = 0; $i < $num_art; $i++) {
$show_art = $artSelectionne[$i];
echo $show_art;
}
}//end show_article
<select name="artSelectionne[]" style="width:300px" size=10>
<option value=0> <? show_article(); ?></option>
</select>
Bandy