Home> PHP Framework> ThinkPHP> body text

thinkphp5 view file submission form form background reception and printing

藏色散人
Release: 2021-05-26 08:57:56
forward
2268 people have browsed it

The following is thethinkphpframework tutorial column to introduce to you thinkphp5 view file submission form form background reception and printing, I hope it will be helpful to friends in need!

thinkphp5 view file submission form form background reception and printing method

    • ##view layer html code
    • controller layer php method
    • thinkphp accepts post submission function
    • thinkphp comes with print function
view layer html code

{include file="public/_meta" /}

{include file="public/_footer" /}
Copy after login

Controller layer php Method

isPost()) { //得到post提交的数据 $data=(input('post.')); dump(input('post.'));//打印后,继续执行 //halt(input('post.'));//相当于 dump() + exit(),打印后,退出 } else { //加载视图文件 return $this->fetch(); } }}
Copy after login

thinkphp5 view file submission form form background reception and printing
thinkphp5 view file submission form form background reception and printing

thinkphp accepts post submission function

$data=(input('post.'));

thinkphp comes with its own printing function

dump(input('post.'));//After printing, continue execution

halt(input('post.'));//Equivalent to dump() exit(), after printing, exit

Related recommendations:

The latest 10 thinkphp video tutorials

The above is the detailed content of thinkphp5 view file submission form form background reception and printing. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!