Seçilen gibi nasıl mevcut seçeneği işaretlemek mi?

0 Cevap php

Ben gibi sayfaları var

index.php?key=toplist&list=magic

Yani, örneğin bu sayfada om eğer i seçin menüsünde seçili olarak işaretlenmiş olması Magic seçeneği istiyorum

<select name="skill" onchange="window.location.href=this.form.skill.options[this.form.skill.selectedIndex].value">
<option value="index.php?<?=QUERY_STRING?>&list=experience">Experience&nbsp;</option>
<option value="index.php?<?=QUERY_STRING?>&list=magic">Magic</option>
<option value="index.php?<?=QUERY_STRING?>&list=shielding">Shielding</option>
<option value="index.php?<?=QUERY_STRING?>&list=distance">Distance</option>
<option value="index.php?<?=QUERY_STRING?>&list=fishing">Fishing</option>
</select>

Teşekkürler

0 Cevap