<?
$message="弹出消息!";
$ss="";
$ss="<script>";
$ss.= "a=window.confirm('$message');";
$ss.= "if(a){";
$ss.= "document.write('1');";
$ss.= "}";
$ss.= "else{";
$ss.= "document.write('0');";
$ss.= "}";
$ss.="</script>";
echo $ss;
?>
$message="弹出消息!";
$ss="";
$ss="<script>";
$ss.= "a=window.confirm('$message');";
$ss.= "if(a){";
$ss.= "document.write('1');";
$ss.= "}";
$ss.= "else{";
$ss.= "document.write('0');";
$ss.= "}";
$ss.="</script>";
echo $ss;
?>
解决方案 »
- 【PHP生成CSV文件】后打开CSV文件编辑再保存时提示【可能含有与unicode文本不兼容的功能】等等提示,是程序有问题吗?程序如下
- php修改字符串
- 复杂的表设计问题,不知道要怎么设计好点呢
- php 得到范围值,在线等
- 帮忙看看js兼容性问题
- php empty()与isset()的区别是什么?
- 请教关于preg_replace替换的问题
- 编辑器问题
- 网站挂马
- file_get_contents访问https的report service报failed to open stream: operation failed
- 如何取得汉字字符的拼音首字母?
- 怎样用javascript实现这个功能?
<!--
if(confirm("aaaaa")) {
alert("yes");
}else{
alert("no");
}
//-->
</script>