我是全新的PHP,實際上我這樣做的原因是自定義wordpress插件,以便它可以滿足我的需要。到目前爲止,我有一個默認表單,我現在要做的就是添加一個國家/地區下拉菜單。以下是我添加它從PHP中的下拉列表中獲取選定的文本
<div class="control-group">
<label class="control-label" for="Country">Country :</label>
<div class="controls">
<select id="itemType_id" name="cscf[country]" class="input-xlarge">
<option value="[email protected]">Malaysia</option>
<option value="[email protected]">Indonesia</option>
</select>
<span class="help-inline"></span>
</div>
</div>
到目前爲止,我只能夠檢索所選的項目與
$cscf['country'];
我怎樣才能顯示文本是在這種情況下,國家名稱的價值?
如果你想退休的價值在其他網頁上,那麼你將需要的形式,所以你可以使用GET/POST方法從窗體發送值到另一個頁面.. – Ashish
你可以處理它通過使用g如果其他?雖然不是最好的方法.. – zxc