Tema: Buscador
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/10/2008, 15:50
llamaradaweb
 
Fecha de Ingreso: noviembre-2005
Mensajes: 29
Antigüedad: 18 años, 6 meses
Puntos: 0
Respuesta: Buscador

aca posteo todo el codigo completo de las 2 hojas el buscador y a donde va, esto funciona pero con este formulario de 3 campos:dato_1 dato_2 y dato_3, lo que quiero hacer es tener solo un campo de busqueda que me busque en dato_1 dato_2 y dato_3. gracias

Buscador.htm
----------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Sitio Web</title>
<style type="text/css">
TD {
FONT-SIZE: 10px; FONT-FAMILY: verdana
}
FORM {
FONT-SIZE: 10px; FONT-FAMILY: Verdana
}
FONT {
FONT-SIZE: 10px; FONT-FAMILY: verdana
}
INPUT {
BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #808080 1px solid; COLOR: #808080; BORDER-BOTTOM: #808080 1px solid; FONT-FAMILY: Verdana,Helvetica; BACKGROUND-COLOR: #ffffff
}
P {
FONT-SIZE: 10px; FONT-FAMILY: verdana
}
a:link {
text-decoration: none;
}
A:link {
FONT-SIZE: 10px; BACKGROUND: none transparent scroll repeat 0% 0%; COLOR: #ffffff; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none
}
.style1 {
color: #FFFFFF;
text-align: center;
}
</style>
</head>

<body>

<table border="1" width="100%" style="border-width: 0px" cellspacing="0" cellpadding="0">
<tr>
<td style="border-style: none; border-width: medium" width="100%" align="center">


<table height="137" border="0" cellPadding="0" cellSpacing="0" bgcolor="#455B75" style="border-width:0px; width: 402px;">
<form name="frmBuscador" action="busqueda.php" method="post">
<tr bgcolor="#455b75">
<td style="border-style:none; border-width:medium; width: 719px;" bgcolor="#455B75" height="27" bordercolor="#FFFFFF" class="style1">
<strong>Nombre y Apellido</strong></td>
<td style="border-style:none; border-width:medium; width: 377px;" bgcolor="#455B75" height="27" bordercolor="#FFFFFF"><span class="Estilo2">
<font face="Verdana" color="#0F1177" size="1">
<font size="1">
<input name="dato_1" size="20" value style="border: 1px solid #0F1177; font-family:Verdana; color:#0F1177; font-weight:bold; background-color:#DBDBDB"></font>
</font></span></td>
</tr>
<tr bgcolor="#455b75">
<td style="border-style:none; border-width:medium; width: 719px;" bgcolor="#455B75" height="27" bordercolor="#FFFFFF" class="style1">
<strong>Empresa</strong></td>
<td style="border-style:none; border-width:medium; width: 377px;" bgcolor="#455B75" height="27" bordercolor="#FFFFFF"><span class="Estilo2">
<font face="Verdana" color="#0F1177" size="1">
<font size="1">
<input name="dato_2" size="20" value style="border: 1px solid #0F1177; font-family:Verdana; color:#0F1177; font-weight:bold; background-color:#DBDBDB; height: 17px;"></font>
</font></span></td>
</tr>
<tr bgcolor="#455b75">
<td style="border-style:none; border-width:medium; width: 719px;" bgcolor="#455B75" height="28" bordercolor="#FFFFFF" class="style1">
<strong>Dirección</strong></td>
<td style="border-style:none; border-width:medium; width: 377px;" bgcolor="#455B75" height="28" bordercolor="#FFFFFF"><span class="Estilo2">
<font size="1" face="Verdana" color="#0F1177">
<input name="dato_3" id="dato_3" style="border: 1px solid #0F1177; font-family:Verdana; color:#0F1177; font-weight:bold; background-color:#DBDBDB" value size="20"></font></span></td>
</tr>
<tr bgcolor="#455b75">
<td align="left" style="border-style:none; border-width:medium; width: 719px;" bgcolor="#455B75" height="28" bordercolor="#FFFFFF">&nbsp;
</td>
<td style="border-style:none; border-width:medium; width: 377px;" bgcolor="#455B75" height="28" bordercolor="#FFFFFF">
<span class="Estilo2">
<font face="Verdana" color="#0F1177" size="1">
&nbsp;<font size="1" color="#0F1177"><input type="submit" value="Buscar" style="border: 1px solid #0F1177; font-family:Verdana; color:#1C3049"></font></font></span></td>
</tr>
</table>

</td>
</tr>
</table>

</body>

</html>
------------------------------------------------------------------------------------------------


buscador.php
muestra asi:

Nombre y Apellido: dato_1
Empresa: dato_2
Dirección: dato_3
Teléfono:
E-mail:
Web:

solo puse arriba el codigo php que tiene buscador.php