我有一个包含这些值的选择框:
<form action="ampcontrols.php" method="post" name="amp">
<select name="amp">
<option value="Fender '57 Deluxe","103">Fender '57 Deluxe</option>
<option value="Fender '59 Bassman","100">Fender '59 Bassman</option>
<option value="Fender '57 Champ","124">Fender '57 Champ</option>
<option value="Fender '65 Deluxe Reverb","83">Fender '65 Deluxe Reverb</option>
<option value="Fender '65 Princeton","106">Fender '65 Princeton</option>
<option value="Fender '65 Twin Reverb","117">Fender '65 Twin Reverb</option>
<option value="Fender Super-Sonic(Burn)","114">Fender Super-Sonic(Burn)</option>
<option value="British '60s","97">British '60s</option>
<option value="British '70s","121">British '70s</option>
<option value="British '80s","94">British '80s</option>
<option value="American '90","93">American '90s</option>
<option value="Metal 2000","109">Metal 2000</option>
</select>
<input name="submit" type="submit" value="Submit" />
</form>
我希望能够获得 2 个值并独立使用它们。这是一个选择框而不是多个。我可以回显选定的名称,即 Fender '57 Deluxe 的 HTML 标签没问题,但还需要传递它的相应编号以单独插入到 xml 文件中。即选择 Fender '57 Deluxe 作为标题和 103 作为 xml 的 id。我尝试过使用 MySQL、XML,但一次只能传递一个值!!我可能错过了一些简单的东西。干杯