/    Sign up×
Community /Pin to ProfileBookmark

Regarding Frames and PHP

Hi ,
My primary html page main.html with 2 frames is as follows :

[code=html]
<FRAMESET FRAMEBORDER=1 COLS=”25%,75%”>
<FRAME SRC=”page1.html” NAME=”frame1″>
<FRAME SRC=”Page2.html” NAME=”frame2″>
<NOFRAMES>
[/code]

page1.html is as follows , In this I will take the search string and forward the request
to Search.php:

[code=html]
<form method=”post” action=”Search.php” >
<input type=”text” name=”search_string” size=”20″>
<input type=”submit” value=”Search”>
</form>
[/code]

In Search.php , I will search all files for required string and store the results in an array.
I display the array using :

[code=php]
foreach($array as $value)
{
echo ” <a href=$value >$value</a>”;
print ‘<pre>’;
}

[/code]

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

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@php_new_userauthorMay 31.2007 — any one has idea about it ???
Copy linkTweet thisAlerts:
@SheldonMay 31.2007 — try [code=php]<form method="post" action="Search.php" target="frame2">[/code]
Copy linkTweet thisAlerts:
@php_new_userauthorMay 31.2007 — 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 ..
×

Success!

Help @php_new_user spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...