0
<!-- example -->

<html>
    <head></head>
    <body>
        /* Lots of contents, header, etc.
        <?php
            if (isset($_GET["id"])) {
                echo $anexample[$_GET["id"]]["test"];
            }
        ?>
    </body>
</html>

There would be links that would say example.php?id=1 and id=5 and id=9. However I'd like page to rerender just that particular place. Nothing else in page will change. Is it possible (with usage of JavaScript and jQuery) to change content (by reprocessing this PHP snippet) without reloading the webpage? I know I can use AJAX and use external PHP file to obtain the answer, but still, I'd like to avoid calling external files.

2
Contributors
1
Reply
19
Views
1 Year
Discussion Span
Last Post by invisal
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.