如何连接几个html / php文件,形成一个完整的网站?

I've basically made different html files that work with php over wamp server, and I want to know how do I put them together?

For example, I have a login page. I'd like the user to be able to login and see the next html file like a main page or something.

I found the header function in php and I'd also like to know if it's the formal way of redirecting the user from page to page.

Yes use header() function of PHP to redirect user to your Home page OR Dashboard page after succeful login of a user:

header('Location: http://www.example.com/');
exit;

To add different files into one page,you can use include_once(), require_once(), include(), require() functions as per your requirement. Click Here

You can use HTML Links;

<a href="nextpage.html">Next Page</a> 

You can use Header in PHP files;

header("Location:nextpage.php");

If I am correct you are trying to authenticate using a PHP code and based on that redirect the user to the HTML page

You can use the following code

    <?php

    if(authneticate();) {

    header("Location: http://www.yoururl.com/home.html");
    exit;

    }
    else {
      header("Location: http://www.yoururl.com/error.html");
    exit;
     }



?>