21,886
社区成员
发帖
与我相关
我的任务
分享
<input type="button" name="button" value="审核" style="width:80px; height:25px; cursor:pointer;" onMouseMove= "this.style.background= '#e1d4c7'" onMouseOut= "this.style.background= ''" onclick="window.location.href='gzd_manage_select_list.php?Gid=<?=$Gid;?>'" />
if (!empty($_GET['Gid'])){ //如果 Gid 不为空
$Gid = $_GET['Gid']; //设置变量$Gid 的值为传过来的Gid值
echo $Gid; //如果赋值成功,会有值输出
}
<input type="button" name="button" value="审核" style="width:80px; height:25px; cursor:pointer;" onMouseMove= "this.style.background= '#e1d4c7'" onMouseOut= "this.style.background= ''" onclick="window.location.href='gzd_manage_select_list.php?Gid=<?echo $Gid;?>'" />
就是把'='改成'echo'