作者:橄榄村 | 来源:互联网 | 2018-04-05 21:42
代码如下:function func()
{
if(confirm("Are you OK with this?"))
{
this.location = "ok.php?action=ok";
}
else
{
this.location = "ok.php?action=cancel";
}
}
《SCRIPT》
Please Click 代码如下:
if($_GET["action"]=="ok")
{
echo "I'm OK!";
}
else
{
echo "I'm not OK!";
}
?>