Código PHP:
<form name="buscar" method="POST" enctype="text/plain" action="<? echo $_SERVER['PHP_SELF'];?>">
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr bgcolor="324F6E">
<td colspan="4"><span class="enlace"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><strong><em><a href="nuevo_documento.php" class="enlace3">NUEVO DOCUMENTO</a></em></strong></font></span><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><strong><em> >></em></strong></font></td>
</tr>
<tr>
<td width="29%"><font color="#999999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>CLIENTE</strong></font></td>
<td width="41%"><font color="#999999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>NOMBRE</strong></font></td>
<td width="14%"><font color="#999999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>TAMAÑO</strong></font></td>
<td width="16%"><font color="#999999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>FECHA</strong></font></td>
</tr>
<?
//Sentencia SQL
$ssql = "SELECT * FROM documentos order Where Referencia=$Ref ";
//Ejecuto la sentencia
$result = mysql_query($ssql,$conn);
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{
if ($row!=0){
?>
<tr>
<td><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><? echo $row['Cliente'];?> </strong></font></td>
<td><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../docs/<? echo $row['Documento'];?>" target="_blank"><? echo $row['Documento'];?></a></strong></font></td>
<td><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><? echo $row['Tamano'];?> KB </strong></font></td>
<td><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><? echo $row['Fecha'];?></strong></font></td>
</tr>
<?
};
};
?>
<tr>
<td colspan="2"><div align="right"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>BUSCADOR
DE CLIENTES PARA ENVIO DE ARCHIVO. REF.>></strong></font></div></td>
<td bgcolor="#E0E0E0"><div align="center">
<input name="Ref" type="text" id="Ref" size="15">
</div></td>
<td bgcolor="#E0E0E0"><input type="submit" name="Submit" value="BUSCAR"></td>
</tr>
</table>
</form>
Gracias de antemano.