We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

luxuryluke on 06/29/06


Tagged

form template search html xslt xhtml google input action method


Versions (?)


Search bar for sites based on XSLT as target for results


Published in: HTML 


A rough search form based on usage with googleboxes and xslt templates for results.

  1. <div id="searchbar">
  2. <form action="http://domain.com/search" method="get">
  3. <input type="text" name="q" value="Search Our Site" size="20" maxlength="120" id="searchInput" onfocus="if(this.value == 'Search Our Site'){this.value='';}">
  4. <input type="hidden" name="site" value="externalSearch">
  5. <input type="hidden" name="client" value="externalSearch">
  6. <input type="hidden" name="restrict" value="wwwexternal">
  7. <input type="hidden" name="proxystylesheet" value="http://domain.com/searchStyle.xslt">
  8. <input type="hidden" name="output" value="xml_no_dtd">
  9.  
  10. <input type="submit" name="btnG" value="Search" id="searchSubmit">
  11. </form>
  12. </div>

Report this snippet 

You need to login to post a comment.