Formularios básicos para búsquedas


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- Redirige a una página de búsqueda -->
  2. <form action="" id="searchform" onsubmit="location.href='http://www.dominio.com/buscar/index.php?q=' + this.elements.keywords.value; return false;">
  3.  
  4. <input type="text" name="keywords" value="">
  5. <input title="buscar" alt="buscar" src="images/search-icon.gif" type="image" onclick="document.forms['searchform'].submit();">
  6.  
  7. </form>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.