Re: How to target result of Form call to php file into different frame??

From: Date: Wed, 13 Dec 2000 16:13:19 +0000
Subject: Re: How to target result of Form call to php file into different frame??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30099@lists.php.net to get a copy of this message
Yoeri De Bruyn wrote: > > Hi overthere! > > I'm still busy getting my search engine up and running ;-) > If there are any interested to use it, I can send you the implementation!!! > It's working roughly now. > I got it up and running all thanks to the splendid input of the people of > this amazing mailinglist!!! > > But still some tuning stuff left to deal with;-¤ > > I have my search site devided into two frames, the "header" containing the > search text field with button, the "body" displays the search result table. > > I call the "searchDB.php" script via the search form but the search result > should be dumped in the "body" frame. > > How can i 'target' the result of the php-database-search into an other > frame? > > Any trick, tip or irresistable hint is very welcome!!!!! > > FB. > Yoeri. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net Make the target of the form your "searchDB.php" , do data validation an if user data is ok then write something like this: <script language="JavaScript"> window.BodyFrameName.location.replace("your_body.html"); </script> 1.replace BodyFrameName with the rigth name (from <frame .... name="somename") 2.Pass any params that wou want to send to your_body.html using URL encoding method ... It should work!

« previous php.general (#30099) next »