<script language = "javascript">
function func()
{
if(confirm("are you ok with this?"))
{
this.location = "ok.php?action=ok";
}
else
{
this.location = "ok.php?action=cancel";
}
}
</script>
<html>
<head>
</head>
<body>
<a href="#" href="#" onclick="javascript:func();">please click</a>
</body>
</html>
<?php
if($_get["action"]=="ok")
{
echo "i'm ok!";
}
else
{
echo "i'm not ok!";
}
?>
如对本文有疑问,
点击进行留言回复!!
网友评论