你看这样行不行?
<?
function _confirm(){
echo "<script language=javascript>";
echo "if(confirm('are you sure to delete all the infomation of this user?')){";
echo "window.location.href='aa.php'";
echo }";
echo "</script>";
}
<?
function _confirm(){
echo "<script language=javascript>";
echo "if(confirm('are you sure to delete all the infomation of this user?')){";
echo "window.location.href='aa.php'";
echo }";
echo "</script>";
}
function _confirm(){
print <<<END
<script language="javascript">
if(!confirm("are you sure to delete all the infomation of this user?"))
{
document.location="javascript:history.go(-1)";
return true
}else
{
return false;
}
</script>
END;
}