私のindex.phpに私はページのすべての部分を含んでいます。私の基本的な構成は次のとおりです。PHP検索フォーム、ページの別の部分に結果を表示しようとしています
<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'); ?>
<div 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>
私は、ヘッダーに検索フォームを提出する自己を持っています。しかし、体に結果を表示したい。だから、私はresults.inc.php
をbody.inc.php
に入れました。しかし、それは明らかにhead.inc.php
のフォームとの接続を作成しません。どのようにすべてのインクルードを使用してこれを行うことができますか?ありがとうございました。
「自己提出検索フォーム」とは何かを説明します。 head.inc.phpが検索フォームに投稿された$ _POSTを処理していることを意味しますか? –
results.inc.phpが$ _POSTを処理します。 results.inc.phpはbody.inc.phpに含まれています。ここで結果が必要です。フォームはhead.inc.phpにあります。自己申告すると、私は同じページ/ $ _SERVER ['PHP_SELF']に結果を表示することを意味します。 – Graham
コードの一部(特にhead.inc.phpとbody.inc.php)を投稿したいかもしれません... – JW8