Je voudrais faire passer plusieurs variables PHP avec GET et que l'une des variable provienne d'un select.
J'ai ecrit cela mais j'obtiens comme url http://www.xxxxxx.com/index.php?test=10
Pouvez vous m'aider?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 <?php echo "<form action='index.php' method='GET'>"; echo "<select class='test' name='test' onchange='top.location.href = '\index.php?catpays='.$catpays.'&catdistance='+this.form.test.value;'> <option value='10'>10 Km</option><BR> <option value='20'>20 Km</option><BR> <option value='50'>50 Km</option><BR> <option value='100'>100 Km</option><BR> <option value='200'>200 Km</option><BR>"; echo "</select>"; echo "<input type='submit' value='Ok' />"; echo "</form>"; ?>
Merci
Partager