all files are php .... Website with the search box in the main site and the search engine is the iframe site
This is the code for the top of the website search box
<input name="search" class="search" type="text" value="under construction..." onfocus="if(this.value == 'under construction...'){this.value = '';}"/>
The search engine is on the website in iframe
code:
<p><iframe src ="http://testsite2.comze.com/test/search" width="100%" height="580" frameBorder="0">
<p>Your browser does not support iframes.</p>
</iframe></p>
The form code in the http://testsite2.comze.com/test/search/index.phpfor the iframe
<form action='index.php' method='get'>
<center><h2>Search</h2><br />
<input type='text' name='query' size='50' value='<?php echo $query; ?>' />
<br />
<input type='submit' value='Search!' />
</center>
</form>
How can i get to where someone types in the top search box and the results show in the results page from the search engine in iframe
Image:

Last edited by mercville; 03-31-2010 at 07:20 AM..
|