Click to See Complete Forum and Search --> : Regarding Frames and PHP


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 ????

php_new_user
05-31-2007, 12:33 AM
any one has idea about it ???

Sheldon
05-31-2007, 12:47 AM
try <form method="post" action="Search.php" target="frame2">

php_new_user
05-31-2007, 12:53 AM
Thanks .. It is wotking ..
I tried similar to it last time .. I dont know what was the problem at that time ...
Now it is working fine ..