Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I direct the reply to a particular window?

Status
Not open for further replies.

PhotonTopedo

Programmer
Joined
Jun 18, 2003
Messages
3
Location
US
Hi, everyone,
I have a question..I want to set up a framed page.. To make it simple, I have one window named SEARCH and another named RESULT.
I have my query script stuffed in the window named SEARCH..then as my PHP script run the query, the result will always goes back to the SEARCH window, right!
Now, how can I direct the result of the query to the RESULT window and not the SEARCH window??
 
Have you tried placing a target in the link of the form?

<form action=&quot;whatever.php&quot; target=&quot;framename&quot;>

- &quot;Delightfully confusing...&quot; raves The New York Times

-Kas
 
PhotonTorpedo,

This, in fact, is more a JavaScript?HTML question that PHP.
PHP can't help you with this at all.

I surmise that you have a form with an action.
Write a javascript function that creates a URL with the query parameters. Make that function set the windows location to the generated URL with the query parameters. The result will be served in that window.
 
thank everyone...
I placed a target=framename As Kasuals said. and it works..
Thks..
 
PhotonTopedo:
To reiterate what DRJ478 has posted:

Your question had nothing to do with PHP, other than the fact that PHP was producing the code. Your question was about the details of HTML, and as such is probably off-topic.

Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top