• This is my coding for the search form:

    <html>
    <head>
    <title>Search</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
        <form action="https://excelforth.com/search1.php" method="GET">
            <input type="text" name="query" />
            <input type="submit" value="Search" />
        </form>
    </body>
    </html>

    The thing is , When I submit this form on my webpage , It goes to the php Results page and displays the results. But the thing is that it is just a plain page with just the results displayed.

    My search page : http://www.mysite/test/certification-database-search/

    The Php file is located in my webroot folder . I was told that for wordpress , the individual subpages cannot be edited .

    How do I : 1.) Display the results on the same page as the search page. Not a completely new page. 2.) Retain the page layout and theme / headers/ footers of the page 3.) If possible run the .php file in /certification-database-search/ and query it from there. instead of using the one in my webroot folder.

    THANKS!!

  • The topic ‘PHP Result page to be displayed on SAME page’ is closed to new replies.