As we were getting more and more complaints against the use of frames on our website, we are trying to get everything into tables using php.
I just got stuck with an interesting problem, for which, I hope, someone has a solution.
On page1, a search engine is located in the left column. Results are to be displayed in the middle column.
My code for the Search using "Freefind":
<table>
<tr><td align="center">
<FORM ACTION="index_search_results.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="id" VALUE="1234567">
<INPUT TYPE="HIDDEN" NAME="pid" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">
<INPUT TYPE="TEXT" NAME="query" SIZE="20"></td></tr><tr><td align="center">
<INPUT TYPE="SUBMIT" VALUE="Find!">
<input type="SUBMIT" name="sitemap" value="Site Map"></td></tr>
</font></FORM></table>
The original action (http://www.freefind.com/find.htm) is replaced by index_search_results.php, which is an identical page, with an include statement in the middle column<?php include("http://search.freefind.com/find.html");
?>
Everything works fine, except for the fact that the variables from the search form on page1 are not passed on to the search. As I see from an echo, they are empty.
Does anyone have a solution to this? The variables are supposed to be passed on to index_search_results.php (is a standard technique).
I just got stuck with an interesting problem, for which, I hope, someone has a solution.
On page1, a search engine is located in the left column. Results are to be displayed in the middle column.
My code for the Search using "Freefind":
<table>
<tr><td align="center">
<FORM ACTION="index_search_results.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="id" VALUE="1234567">
<INPUT TYPE="HIDDEN" NAME="pid" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">
<INPUT TYPE="TEXT" NAME="query" SIZE="20"></td></tr><tr><td align="center">
<INPUT TYPE="SUBMIT" VALUE="Find!">
<input type="SUBMIT" name="sitemap" value="Site Map"></td></tr>
</font></FORM></table>
The original action (http://www.freefind.com/find.htm) is replaced by index_search_results.php, which is an identical page, with an include statement in the middle column<?php include("http://search.freefind.com/find.html");
?>
Everything works fine, except for the fact that the variables from the search form on page1 are not passed on to the search. As I see from an echo, they are empty.
Does anyone have a solution to this? The variables are supposed to be passed on to index_search_results.php (is a standard technique).
Comment