Using HTML form action with a php script being in another directory (relative paths)

后端 未结 4 1969
甜味超标
甜味超标 2021-01-04 12:43

Here\'s what my diretory tree looks like

/application
    /lib
    /util
        /login
    /views
        /base_view

My login page is

4条回答
  •  半阙折子戏
    2021-01-04 13:18

    In your relative path ./util/login/main.php, you're using ./ which refers to the current folder, so it assumes that the folder structure /util/login is inside /base_view. You should try using ../ which refers to the parent folder:

    
    

提交回复
热议问题