ok so i need to know how to make it so that if i have a page for example website.com/test.php how can i make it so that i include pages in it tso they come up when someone clicks the nav bar at the top so it goes to website.com/test.php?test1
website.com/test.php?test2
website.com/test.php?test3

so i would put an include into it so include page test1.php so it would go to test.php?test1 but the include is there.

    put the following code in test.php

    if(isset($GET['test1']))
    include_once(test1.php);
    else if(isset($
    GET['test2']))
    include_once(test2.php);
    else if(isset($_GET['test3']))
    include_once(test3.php);

      will this work if i make a nav bar in the top of the html page so i have test1.php || test2.php || test3.php in a nav bar, then every time someone clicks test.php?test1 the nav bar will always be there and the bottom of the page changes 🙂

        That would depend on the code you write.

          ok thanks, but if i wanted to put all the scripting into one scripts called test, and i had the html and scripting echos ect for the pages how can i put different links like test.php?test1 orr test.php?haha ect for the different pages, without them being includes.

            You either have to include/require the other files from your central script file, or require the central script file from every other file.
            This means that in case one, you have URIs referring to test.php with the query string ?testN and in the second case testN.php.

              5 days later

              Well, I guess that depend on what code of programming you used to. You either have to include/require the other files from your central script file, or require the central script file from every other file.

                Write a Reply...