PHP header(Location: …): Force URL change in address bar

后端 未结 14 1632
失恋的感觉
失恋的感觉 2020-11-28 08:10

I\'m currently working on a mobile site with authentication using PHP sessions with a database. I have a login page with a form that goes to server_login.php

14条回答
  •  野性不改
    2020-11-28 08:35

    Do not use any white space. I had the same issue. Then I removed white space like:

    header("location:index.php"); or header('location:index.php');
    

    Then it worked.

提交回复
热议问题