Posted By

distribuida on 09/15/11


Tagged

formularios


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Josueriv


Formularios básicos para búsquedas


 / Published in: 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  

You need to login to post a comment.