...

View Full Version : Altering some search code



Crowds
09-14-2005, 09:43 PM
I have googles search code in my pages but it has not yet indexed my site so when choosing 'this site' under the search field no results are found. So i have started to use 'the search engine project tsep.0941' as an altenate. I would however like to keep the google web search ability so i hsve been wondering if i could alter the following code so that any 'this site' searches are redirected to my tsep.0941 search page. the pages that contain the search box are html but my search page (for results or further searches) is in php... would i need to make all my pages php? or can i just alter the following code somehow...

<form method="get" action="http://www.google.co.uk/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif"
border="0" alt="Google"></img></a>
<br/>
<input type="hidden" name="domains" value="www.surviving-chesterfield.co.uk"></input>
<input type="text" name="q" size="25" maxlength="255" value=""></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.surviving-chesterfield.co.uk"></input>
<font size="-1" color="#000000">This Site</font>
</td>
</tr>
</table>
<input type="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-#########"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#0066FF;GL:1;DIV:#5E89AE;VLC:FFFFCC;AH:center;BGC:D5DBE1;LBGC:336699;ALC:000000;LC:000000;T:5E8 9AE;GFNT:0099FF;GIMP:0099FF;LH:100;LW:100;L:http://www.surviving-chesterfield.co.uk/images/googim1.jpg;S:http://www.surviving-chesterfield.co.uk/;LP:1;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>

</td></tr></table>
</form>

Cheers
Crowds

vinyl-junkie
09-15-2005, 06:22 AM
I would suggest that you build a page that uses TSEP searches for now. Then when Google has indexed your site, put a permanent redirect on the TSEP search page to the Google search page.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum