Thinkphp, click the button, and then background action processing, how should it be handled? How to respond to this button, please answer.

Thinkphp, click the button, and then background action processing, how should it be handled? How to respond to this button? , Please answer me greatly. . Response content: thinkphp, click the button, and then background action processing, how should it be handled? How to respond to this button? , Please answer me greatly. . It is more convenient to use a link, let the href of a point to the path where you want to execute the action, and you can put parameters on the url, if it is more complicated, use ajax to request, the principle is the same. Of course, the biggest advantage of ajax is that the page does not jump/refresh The button triggers a request, and then this request is no different from your request to open a web page, so the backend handles it normally. (For this kind of problem, I suggest you post the code and let us know whether you want an ajax request or a page request) Use ajax to request the url of the backend action to perform the operation After success, you can use js to call back the data returned by the backend

Php baidu online editor ueditor usage problem, please answer

//Can the past text of my post be directly saved to the database // Response content: //Can the past text of my post be directly saved to the database //

PHP array strange thing, please answer

class dd { const d = ‘d’; public function test() { $arr = array(); $arr[‘d’] = ‘test’; $arr2 = array( ‘a’ => ‘1’, ‘b’ => ‘2’, ‘c’ => ‘3’, ‘d’ => ‘4’ ); foreach ($arr2 as $key=>$value) { if (in_array($key,array(‘a’,’b’,’c’)) || isset($arr[‘self::d’])) { echo $key; } } } } $dd = new dd(); $dd->test(); Output: abc Why not output abcd ======== Supplement ======== In fact, what I really want to ask is, isn’t the single quote not parsed? Why echo $arr[‘self::d’]. The prompt is that the constant ‘self::d’ is not defined? The hint is to define ‘self::d’ not ‘d’. ======== I am the dividing line ======== Response content: class dd { const d = ‘d’; public function test() { $arr = array(); $arr[‘d’] = ‘test’; $arr2 = array( ‘a’ => ‘1’, ‘b’ => ‘2’, ‘c’ => ‘3’, ‘d’ => ‘4’ ); foreach ($arr2 as $key=>$value) { if (in_array($key,array(‘a’,’b’,’c’)) || isset($arr[‘self::d’])) { echo $key; } } } } $dd = new dd(); $dd->test(); Output: abc Why not output abcd ======== Supplement ======== In fact, what I really want to ask is, isn’t the single quote not parsed? Why echo $arr[‘self::d’]. The prompt is that the constant ‘self::d’ is not defined? The…

Please answer, what is PHP?

Please answer, what is PHP?

PHP is a server-side scripting language php used to create dynamic web pages. You create pages with PHP and HTML. When a visitor opens a web page, the server will process the PHP command, and then send the processing result to the visitor’s browser, just like ASP or ColdFusion. However, unlike ASP or ColdFusion, PHP is cross-platform and open source. PHP can be executed on Windows NT and many different Unix versions, and it can also be compiled as an Apache module, or a CGI binary file php configuration. PHP is especially lightweight and convenient when compiled as the Apache module. It doesn’t have any cumbersome programming overhead, so it can return results quickly, and there is no need to adjust mod_perl to keep the server’s memory image small. In addition to being able to generate the content of your web pages, PHP can also be used to deliver . The PHP code is embedded in the web page, so you don’t have to set up a special development environment or IDE for it php setup . You use markup PHP code (you can also set PHP to use markup in the form of ASP or even use markup). Anything…

picture description

About the routing problem of PHP’s Laravel framework, please answer

I have defined the following routes in routes/wen.php: When I visit public/index.php, I can normally enter the Index method in the Index controller. At this time, my domain name It is: 127.0.0.1/Laravel/public, because of the apache configuration, the index.php is opened by default, but it is not displayed in the domain name,But I defined the second route, which is the user in the root directory at this time I visit 127.0.0.1/Laravel/public/user againThe result is the following error When I add index.php to 127.0.0.1/Laravel/public/index. php/user accesses normally at this time, I don’t understand why, Why do I watch video tutorials where other people access directly, no need to add index.php

I want to output the array in js in php, but I can’t output it in php, please answer

Article directory [hidden] Reply to discussion (solution) This is js generation array and pass <?php $data=json_decode($_post[‘data’]); echo $data[0]; echo ‘‘; echo $data[1]; ?> This is php receiving Reply to Discussion (Solution) $_post[‘data’] You type this thing var_dump and see what it looks like, you will know how to do it $_POST is not $_post I will try After printing out, it is NULL $_POST is not $+The source of this article is gao@daima#com (%代@#码网 Gaodaima Code _post Changed to uppercase and printed out is also NULL print_r($_POST); See what it is print_r($_POST); See what it is Still an empty ARRAY() Your ajax didn’t pass over, so I can’t complain about php Your ajax didn’t pass over, so I can’t complain about php How to change that, JS is also not very good at initial contact First check if there is a value in obj By the way, you are not debugging in PhpStorm, are you? First check if there is a value in obj By the way, you are not debugging in PhpStorm, are you? I don’t know if it is data: JSON.stringify(arr); The problem with this sentence This function seems not to be recognized It is debugging in sublime…

Please answer, what is PHP?

Please answer, what is PHP?

PHP is a server-side scripting language php used to create dynamic web pages. You create pages with PHP and HTML. When a visitor opens a web page, the server will process the PHP command, and then send the processing result to the visitor’s browser, just like ASP or ColdFusion. However, unlike ASP or ColdFusion, PHP is cross-platform and open source. PHP can be executed on Windows NT and many different Unix versions, and it can also be compiled as an Apache module, or a CGI binary file php configuration. PHP is especially lightweight and convenient when compiled as the Apache module. It doesn’t have any cumbersome programming overhead, so it can return results quickly, and there is no need to adjust mod_perl to keep the server’s memory image small. In addition to being able to generate the content of your web pages, PHP can also be used to deliver . The PHP code is embedded in the web page, so you don’t have to set up a special development environment or IDE for it php setup . You use markup PHP code (you can also set PHP to use markup in the form of ASP or even use markup). Anything…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索