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

后端 未结 14 1664
失恋的感觉
失恋的感觉 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:31

    why all of this location url?

    http://localhost:8080/meet2eat/index.php
    

    you can just use

    index.php
    

    if the php files are in the same folder and this is better because if you want to host the files or change the port you will have no problem reaching this URL.

提交回复
热议问题