Hi
So this is probably quite easy but I can’t find the solution.
I want to have a form and after the user have chosen in the list the address need to be sent to the browser.
Here is a snip from my code.
<?php
$data = "ligaid=12&serie=2";
echo "<form action='index.php' ENCTYPE='application/x-www-form-urlencoded' name='sasong' method='GET'>
<select name='spela' ENCTYPE='text/plain' class='kommentera'>
<option value=''>---- Tidigare säsonger ----</option>
<option value='".$data."'>Session 1</option>
<option value='asd6'>Session 2</option>
<option value='asd8'>Session 3</option>
<option value='asd10'>Session 4</option>
</select>
<input type='submit' value='Submit'>
</form>";
?>
The address will now be
index.php?spela=ligaid%3D12%26serie%3D2
when I choose alternative "Session 1"
But I want it to be
index.php?spela=ligaid=12&serie=2
Can anyone help me?