Home >Backend Development >PHP Tutorial >thinkPHP中form表单action的问题

thinkPHP中form表单action的问题

WBOY
WBOYOriginal
2016-06-23 14:22:482417browse

thinkphp form action 表单

thinkPHP中form表单的action应该怎么写?我的项目名为reg,html文件名为search.html,对应的php文件为Search.class.php。类为Search ,方法为search()。action="{:U('reg/Search/search')}"这样写对吗?正确的方式是什么

回复讨论(解决方案)

你的PHP文件命名应该是 SearchAction.class.php 才对哦!

找到原因了,谢楼上

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