Ver Mensaje Individual
  #8 (permalink)  
Antiguo 19/03/2010, 11:24
Maru77
 
Fecha de Ingreso: agosto-2003
Mensajes: 524
Antigüedad: 20 años, 9 meses
Puntos: 5
Respuesta: Error con PHP_SELF

Código HTML:
<form action="<?PHP $PHP_SELF ?>" method="post" >
<table width="500" height="150" border="0" align="center" class="tblformprof" cellspacing="5" cellpadding="5">
  <tr>
    <td width="54" class="izq">Nombre</td>
    <td width="197"><label>
      <input type="text" name="nombre" id="tomo" size="10">
    </label></td>
     <tr>
    <td>&nbsp;</td>
    <td><label>
      <div align="center">
        <input class="boton" type="submit" name="button" id="button" value="Buscar">
        </div>
    </label></td>   
</table>
</form> 


Código PHP:
if (isset($_POST['nombre'])) {
   echo 
"mi variable: $nombre";
}    

$query "SELECT * FROM $Tabla WHERE nombretbl= $nombre ORDER BY nombre ASC"
__________________
Saludos!!!
Maru.-