demonic5150
03-30-2010, 11:30 PM
:thumbsup: all files are php .... Website with the search box in the main site and the search engine is in iframe
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 search/index.php for 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:
http://testsite2.comze.com/iframe.JPG
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 search/index.php for 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:
http://testsite2.comze.com/iframe.JPG