I am currently codding a little addon for wowroster , but I am facing a little problem. In fact I have created a From with 2 select list ( <select .... > ) as describes below
- Code: Select all
$choiceForm = '<form action="'.$script_filename.'" method="POST" >
<select name="Professionsfilter" '.$wordings[$roster_conf['roster_lang']]['Professions'].'onchange="top.location.href=this.options[this.selectedIndex].value">
<option value="'.$script_filename.'&Professionsfilter=All">'.$wordings[$roster_conf['roster_lang']]['AS_Select_Professions'].'</option>'."\n";
while($row_fct = $wowdb->fetch_array($result_fct))
{
if( $_REQUEST['Professionsfilter'] == $row_fct['fct_name'] )
$choiceForm .= ' <option value="'.$script_filename.'&Professionsfilter='.$row_fct['fct_name'].'" selected="selected">'.$row_fct['fct_name']."</option>\n";
else
$choiceForm .= ' <option value="'.$script_filename.'&Professionsfilter='.$row_fct['fct_name'].'">'.$row_fct['fct_name']."</option>\n";
}
$choiceForm .= ' </select>';
$choiceForm .= '<select name="Recipefilter" onchange="top.location.href=this.options[this.selectedIndex].value">
<option value="'.$script_filename.'&Recipefilter=All">'.$wordings[$roster_conf['roster_lang']]['AS_Select_RecipeType'].'</option>'."\n";
while($row_type = $wowdb->fetch_array($result_type))
{
if( $_REQUEST['Recipefilter'] == $row_type['recipe_type'] )
$choiceForm .= ' <option value="'.$script_filename.'&Recipefilter='.$row_type['recipe_type'].'" selected="selected">'.$row_type['recipe_type']."</option>\n";
else
$choiceForm .= ' <option value="'.$script_filename.'&Recipefilter='.$row_type['recipe_type'].'">'.$row_type['recipe_type']."</option>\n";
}
$choiceForm .= ' </select></form><hr>';
echo $choiceForm;
When I am selecting a value in the first select box it's ok , but when I am choosing a value in the second select box , the only value sent by the form is the value of the second select box , but not the value of the first select box
If someone has an idea it could help me , here is an example of my problem
http://eelessar.free.fr/roster/addon.php?roster_addon_name=BesoinRaid
Many thanks
I hope that I am not breaking the rule of the forum , I haven't find the exact category in order to poset this in the forum
regards
Filunar