<form name="postForm" action="?action=add" method="post"> if($_GET[action]=="add")这样判断对否?
解决方案 »
- FastCGI 进程超过了配置的活动超时时限
- 怎么使Cookies作用于两个不能的域名
- 数据检测问题...急在线=
- 我现在有一个230M左右的sql文件,用什么方法或软件能导入到本地?在线等,急急急。。。
- 请教高手:PHP的调试问题(Zend Studio相关)
- 如何写超链接的正则表达式
- 怎样修改phpMyAdmin的config.inc.php文件
- [求]字符串截取函数,要求见贴
- 求助:登陆有效性的验证的问题(关于session)
- 请教关于制作登陆程序。。。
- 新登录用户将原登录用户的数据信息替换掉的问题
- Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (gbk_chinese_ci,COERCIB
if($_POST['action']=="add")
或者
method="get"
if($_GET['action']=="add")
真逗 看清楚了, GET地址也进来的好不好3楼的正解
ckmail();
ckname();
ckntitle();
ckmsgcontent();
if(flag1&&flag2&&flag3&&flag4){
postForm.action="?action=add";
postForm.submit();
}
<input type="button" onclick="javascript:checkpost();" class="spt2" value="马上留言">
那就是没错啊。为什么我数据提交不了了。。上面是js语句。也没问题吧。
document.postForm.submit();另外,你确定语句进入if里面了吗?
可以这么修改action的值吗?