search

Home  >  Q&A  >  body text

There is a problem with the verification code of the student management system!

One night, it gave me a headache. I downloaded the complete source code, configured the environment to run, and everything was normal. After learning and debugging for a while, the verification code did not appear.

Local PHP toolbox environment. How do I change the source code and re-download the configuration, but the verification code is not displayed. It works fine when I change the laptop, but I cannot submit data, modify the study list, and there is no response after the teacher submits it.

After uploading the complete source code to a virtual space I bought, the configuration is the secondary directory IIS. I also worked on the web.config for a long time, and finally got it all done. I refreshed the page and entered it correctly once to log in. . If you need to log in again and do not press F5 to refresh, just click the button next to the verification code. The verification code will not be refreshed or displayed.

http://www.cthysq.cn/edu/public/index.php/index/user/login.html


##

aTomaTom2570 days ago2516

reply all(7)I'll reply

  • @时光是个冷美人

    @时光是个冷美人2017-12-26 14:40:02

    This is the verification code before refreshing

    7726359e7195324eb3de951bf8291bc.png

    This is the verification code after refreshing

    132a43bd7837d51b1c5ab2e82b5b93f.png



    ## <!--Automatically refresh verification code-->

    <script>

    function captcha_refresh(){

    var str = Date.parse(new Date())/1000;

    $('#captcha_img').attr("src", "/edu/public/index.php /captcha.html/captcha?id="+str);

    }

    </script>


    reply
    0
  • @时光是个冷美人

    try it yourself

    @时光是个冷美人 · 2017-12-26 14:40:15
    @时光是个冷美人

    or this $('#captcha_img').attr("src", "/edu/public/index.php/captcha?id="+str);

    @时光是个冷美人 · 2017-12-26 14:41:27
    aTom

    It seems to be a problem with incorrect pseudo-static settings. The web.config is quite troublesome and not as easy to deal with as the Linux server.

    aTom · 2017-12-27 20:03:43
    aTom

    Thank you, I just tried it and this method works. To me, you are a master!

    aTom · 2018-01-18 17:48:27
  • 有人@我

    有人@我2017-12-25 17:44:39

    Comparison, I don’t know what I want to ask

    reply
    0
  • Gakki

    Gakki2017-12-25 14:01:16

    PHP learning exchange group: *

    reply
    0
  • Cancelreply