Hi
This problem is really bugging me.. I hope someone can help
Code:
$result = safe_query("SELECT * FROM ".PREFIX."cup_clan_members WHERE userID = '".$userID."' AND function = 'Leader'");
$clan = '<option value="0" selected="selected"> - '.$_language->module['choose_team'].' - </option>';
while($dm=mysql_fetch_array($result)) {
$clan .= '<option value="'.$dm['clanID'].'">'.getclanname($dm['clanID']).'</option>';
$clanID = $dm['clanID'];
}
Code:
<form method="get" action="clans&action=clanregister&cupID='.$dl['ID'].'"><select name="clanID">'.$clan.'</select><input type="submit" value="Go"></form>
Output: clans&action=clanregister&cupID=<ID>?clanID=<ID>
Needed output: clans&action=clanregister&cupID=<ID>&clanID=<ID>
I get correct outputs for both IDs also.
I tried:
Code:
<form method="get" action="clans&action=clanregister&cupID='.$dl['ID'].'&clanID='.$clanID.'"><select>'.$clan.'</select><input type="submit" value="Go"></form>
but it doesn't select correct clanID from dropdown.
also tried
Code:
<form action="index.php?"><select name="site">
<option value="clans&action=clanregister&cupID='.$dl['ID'].'&clanID='.$dm['clanID'].'">
Output: index.php?site=clans%26action%3Dclanregister%26cup ID%3D23%26clanID%3D325
:S
%26 = "&"
%3D = "="