我想重新加载我的页面(PHP),从下拉菜单更改值并将所选项目的值作为变量与另一个变量一起传递给页面。我试过以下 -
<select name="application" onChange=Refresh(this.value,$query)" \>
<option>Any Application</option>
<option>ChIP</option>
<option>Enzyme Immunoassay</option>
<option>ELISA</option>
<option>Flow Cytometry</option>
<option>FACS</option>
</select>
刷新功能是:
function Refresh(id,gene){
location.href="getnet.php?app=" + id + "&query=" + gene;
}
我收到的变量如下:
$query = $_POST['gene'];
$app = $_POST['application'];