Home  >  Article  >  Backend Development  >  PHPCMS会员登陆 表单提交地址是什么?解决方法

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

WBOY
WBOYOriginal
2016-06-13 10:19:201373browse

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二次开发群
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn