开发者

PHP search form, trying to display results in different part of page

In my index.php I'm including all of the parts of the page. My structure is basically:

    <div id="page">
        <?php include('/home/content/16/7554016/html/template/head.inc.php'); ?>
        <?php include('/home/content/16/7554016/html/template/nav_below.inc.php'); ?>
        <di开发者_运维技巧v id="left"><?php include('/home/content/16/7554016/html/template/left.inc.php'); ?></div>
        <div id="body"><?php include('/home/content/16/7554016/html/template/body.inc.php'); ?></div>
        <div id="right"><?php include('/home/content/16/7554016/html/template/right.inc.php'); ?></div>
    </div>

<div id="footer"><?php include('/home/content/16/7554016/html/template/footer.inc.php'); ?></div>

I have a self submitting search form in the header. But, want to display the results in the body. So, I put the results.inc.php in the body.inc.php. But, that obviously won't create a connection with the form in the head.inc.php. How can I do this using all of the includes? Thank you.


What connection are you trying to create? If you display the results in the body using php, it doesn't have to be linked to the form, or within the form tags. the php code will be executed in the order it is included.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜