求教~!一小段asp语句改写成php
求教~!一小段asp语句改写成php
<%
if pw=4 then
Response.Write " <script language=JavaScript> "
Response.Write "alert( " "你的帐号已被禁用,请联系管理员!! " "); "
Response.Write "window.location= 'error.php?pw=3 ' "
Response.Write " </script> "
end if
%>
[解决办法]
<?php
if($pw == 4)
{
echo " <script language=JavaScript> ";
echo "alert(\ "你的帐号已被禁用,请联系管理员!!\ "); ";
echo "window.location= 'error.php?pw=3 ' ";
echo " </script> ";
}
?>
就这样,没得说了
[解决办法]
<?php
if($pw == 4){
echo ' <script> alert( "你的帐号已被禁用,请联系管理员! ");location.href= "error.php?pw=3; " </script> ';
}
?>