How to solve the problem that there is no response after clicking the login button on the actual login interface of ThinkPHP5?
纯洁的哥子
纯洁的哥子 2017-08-19 11:16:40
0
4
1928
纯洁的哥子
纯洁的哥子

艰难困苦,玉汝于成

reply all(4)
学生阿正丶

I have been working on this login button all night, but it still doesn’t respond. . . I checked the code a few times and it should be fine, but if the password is correct it won't go to the background. . Find the solution~~~

  • reply Teacher, I found a problem. Add use thinkSession; to the login.php file to enter the background! God, I can’t sleep all night~~~~~
    学生阿正丶 author 2017-08-20 08:23:25
  • reply Reply ringa_lee: Have you made it?
    phpcn_u42726 author 2017-10-13 21:38:53
  • reply You can do it, you are one step closer to becoming a great god
    ringa_lee author 2017-08-21 10:38:22
Peter_Zhu

This is normal for me. If there is no response when you click to log in, please open the developer tools of the browser, open the network tab, and check whether the data submitted to the server has a value, or check the request header and check the URL parameters. . Also, turn on the debugging switch of TP (root directory .env file, if it is installed by composer, it may not be available and needs to be created manually), turn on app_debug=true, and then, in the login verification method in the controller, add the received Request data to print out and view: dump($request->pare());exit; or write the data returned by ajax on the front end to the console: console.log(result) to view and ensure that there is data returned. If you click, you can see the screen flash for a moment and then stop moving. It is very likely that there is a problem with your front-end calling part. Please check whether your submission order is correct? If you really have trouble using the $.ajax function, you can refer to: layui official documentation to check out the monitoring and processing of form data submission. You can also use the submission method provided by x-admin~~

Write the code in three parts. It is rare to pass the seven-point tune in one pass. Be patient when making mistakes. For programmers, debugging skills are sometimes more important than programming skills~~

I wish you success~~

  • reply Oh oh oh, thank you teacher, I'll try it
    纯洁的哥子 author 2017-08-19 13:21:34
ringa_lee

Is there a problem with the source code?

  • reply I checked the code many times and it was the same as what was written in the teacher’s video, but my login button just didn’t respond, and it didn’t jump or prompt.
    纯洁的哥子 author 2017-08-19 12:46:36
  • reply In the section about administrator login and verification, at the three-minute mark, the teacher wrote that when you click to log in, there will be a prompt box. You can jump after writing it completely, but nothing happened when I clicked to log in.
    纯洁的哥子 author 2017-08-19 13:13:09
  • reply http://www.php.cn/code/19043.html
    纯洁的哥子 author 2017-08-19 13:10:23
  • reply Which course is it? Can you send me the link?
    ringa_lee author 2017-08-19 13:05:18
  • reply Teacher Zhu who recorded this video course gave you the answer.
    ringa_lee author 2017-08-19 13:16:04
小熊拒绝套路

Me too, no response after clicking on it

I checked the code several times to make sure it’s correct

  • reply It’s so heartbreaking. It hasn’t been solved since last night.
    纯洁的哥子 author 2017-08-19 12:47:20
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template