调用javascript的代码如下
<select name="serv_name" id="serv_name" onChange="selectserver('$job',this.value);">
变量$job的值是addhost或edit
<select name="serv_name" id="serv_name" onChange="selectserver('$job',this.value);">
变量$job的值是addhost或edit
不是漏了什么";"以上代码没错,要说错就是cid这个没定义
应该改为window.location.href='configure.php?job=edit&cid=$cid&serv='+y;
$cid是PHP的变量,直接放到''里就行了.