I have been trying to add Google Custom Search to my website. I have copied the code etc, but when I do a search the search results page links to some random page on my site, see below. Its supposed to link to http://www.bblogic.com/misc.php?do=page&template=gsearch But instead it links to http://www.bblogic.com/misc.php?cx=...=&sa=Search&siteurl=www.bblogic.com/forum.php Search Box Code <form action="http://www.bblogic.com/misc.php?do=page&template=gsearch" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-X2XXXX933XXXX02:71XXrslXXne" /> <input type="hidden" name="cof" value="FORID:11" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="30" /> <input type="submit" name="sa" value="Search" /> </div> </form> <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script> Code (markup): Search Results Code <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.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> Code (markup): Thanks