Home  >  Q&A  >  body text

How to solve the problem that there is no response after clicking the login button on the actual login interface of ThinkPHP5?

纯洁的哥子纯洁的哥子2641 days ago1907

reply all(4)I'll reply

  • 学生阿正丶

    学生阿正丶2017-08-20 08:17:07

    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
    2
  • 学生阿正丶

    Teacher, I found a problem. Add use thinkSession; to the login.php file to enter the background! God, I can’t sleep all night~~~~~

    学生阿正丶 · 2017-08-20 08:23:25
    phpcn_u42726

    Reply ringa_lee: Have you made it?

    phpcn_u42726 · 2017-10-13 21:38:53
    ringa_lee

    You can do it, you are one step closer to becoming a great god

    ringa_lee · 2017-08-21 10:38:22
  • 天蓬老师

    天蓬老师2017-08-19 13:14:57

    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
    0
  • 纯洁的哥子

    Oh oh oh, thank you teacher, I'll try it

    纯洁的哥子 · 2017-08-19 13:21:34
  • ringa_lee

    ringa_lee2017-08-19 11:31:55

    Is there a problem with the source code?

    reply
    0
  • 纯洁的哥子

    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.

    纯洁的哥子 · 2017-08-19 12:46:36
    纯洁的哥子

    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.

    纯洁的哥子 · 2017-08-19 13:13:09
    纯洁的哥子

    http://www.php.cn/code/19043.html

    纯洁的哥子 · 2017-08-19 13:10:23
    ringa_lee

    Which course is it? Can you send me the link?

    ringa_lee · 2017-08-19 13:05:18
    ringa_lee

    Teacher Zhu who recorded this video course gave you the answer.

    ringa_lee · 2017-08-19 13:16:04
  • 小熊拒绝套路

    小熊拒绝套路2017-08-19 11:24:12

    Me too, no response after clicking on it

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

    reply
    0
  • 纯洁的哥子

    It’s so heartbreaking. It hasn’t been solved since last night.

    纯洁的哥子 · 2017-08-19 12:47:20
  • Cancelreply