php_new_user
05-30-2007, 07:01 AM
Hi ,
My primary html page main.html with 2 frames is as follows :
<FRAMESET FRAMEBORDER=1 COLS="25%,75%">
<FRAME SRC="page1.html" NAME="frame1">
<FRAME SRC="Page2.html" NAME="frame2">
<NOFRAMES>
page1.html is as follows , In this I will take the search string and forward the request
to Search.php:
<form method="post" action="Search.php" >
<input type="text" name="search_string" size="20">
<input type="submit" value="Search">
</form>
In Search.php , I will search all files for required string and store the results in an array.
I display the array using :
foreach($array as $value)
{
echo " <a href=$value >$value</a>";
print '<pre>';
}
When I display the array It is getting printed in FRAME1 of primary html page (main.html). But I want to display it in the place of FRAME2 in main.html
How can it be done ????
My primary html page main.html with 2 frames is as follows :
<FRAMESET FRAMEBORDER=1 COLS="25%,75%">
<FRAME SRC="page1.html" NAME="frame1">
<FRAME SRC="Page2.html" NAME="frame2">
<NOFRAMES>
page1.html is as follows , In this I will take the search string and forward the request
to Search.php:
<form method="post" action="Search.php" >
<input type="text" name="search_string" size="20">
<input type="submit" value="Search">
</form>
In Search.php , I will search all files for required string and store the results in an array.
I display the array using :
foreach($array as $value)
{
echo " <a href=$value >$value</a>";
print '<pre>';
}
When I display the array It is getting printed in FRAME1 of primary html page (main.html). But I want to display it in the place of FRAME2 in main.html
How can it be done ????