When I search for "Summer" in
http://www.shinysearch.com/home2.php?style=iphone<ext=iPhone
and then I click in "Images" I get a simple "http://images.google.pt/
images?q=Summer".
I tried to adapt that HTML code to my website but when I click in
"Images" I just get a "http://images.google.pt/images?q="
Help me saying what's wrong in my code:
(I want to save the searched term in a cookie 'q='):
In Search Page:
<form action="HTTP://WWW.myWebsit.COM" id="cse-search-box">
<table cellSpacing="0" cellPadding="0">
<tr vAlign="top">
<td width="25%" style="font-family: arial,sans-serif"> </td>
<td noWrap valign="middle" align="center" style="font-family:
arial,sans-serif">
<input type="hidden" name="cx" value="partner-pub-013479247853p58" />
<input type="hidden" name="cof" value="FORID:11" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="55" autocomplete="off" /><br>
<input type="submit" name="sa" value="Google Search" />
<script type="text/javascript">
function fc() { x = document.getElementsByName('q');x[0].focus();}
window.onload = fc();
</script>
In Search Results Page:
<td class="results2"><form action="HTTP://WWW.myWebsite.COM/
RESULTS.PHP" id="cse-search-box">
<div>
<input type="hidden" name="style" value="iphone" /> <input
type="hidden" name="cx" value="partner-pub-013479247853p58" />
<input type="hidden" name="cof" value="FORID:11" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" autocomplete="off" value="" size="40" />
<input type="submit" name="sa" value="Search" />
</div>
</form></td>
</tr>
</table>
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.pt";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/
show_afs_search.js"></script>
</div>
</div>
<div class="resultsbottom"></div>
</div>
</center>
<!--End of Search Results-->
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---