您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHPCMS会员登陆 表单提交地址是什么?解决方法

2024/4/5 11:26:12发布38次查看
phpcms会员登陆 表单提交地址是什么?
phpcms会员登陆 表单提交地址是什么?
这是phpcms的登陆地址
http://localhost/zyy/index.php?m=member&c=index&a=login
想在首页做一个登陆框,但找不到表单的提交地址
在会员登陆模板中 form的action为空
我在首页应该写成什么样的?
------解决方案--------------------
提交地址就是本身
http://localhost/zyy/index.php?m=member&c=index&a=login
可以把
http://localhost/zyy/index.php?m=member&c=index&a=login对应的页面form放到首页上,然后把action=改为“index.php?m=member&c=index&a=login”,基本也可以,但是关联的js。等等也要相应的变动一下。
做好是用js来实现。
相应的php文件在
modules\member中index.php有个login函数
phpcms\templates\default\member存的是html页面login.html
------解决方案--------------------
提交给
http://localhost/zyy/index.php?m=member&c=index&a=login
在提交的时候多提交个表单dosubmit
如果是同步提交,请加个隐藏域
如果是ajax一步提交,请多传输一个dosubmit参数
data:{
//your data
dosubmit : 1
}
还不懂请加227319119这个phpcms二次开发群
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product