PHP header() called via AJAX not working properly

后端 未结 4 1063
轮回少年
轮回少年 2021-01-25 06:29

I\'m new to web development.

Right now I\'m working on a login feature on a site. I used Javascript/AJAX to fetch the username and password and send it to a PHP file for

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-25 07:11

    What's happening exactly?

    After header() is called in php, php still executes the rest of the script unless you stick an exit; after the header() call. This is only if you don't want to execute the rest of login.php

提交回复
热议问题