mm otra forma seria que hagas todo el proceso del query si es que la pagina
cargara al hacer click a un previo evento
Código:
<?php
include('conexion.php');
$placas = $_POST['placa'];
$cslt = mysql_query("SELECT nombre_infractor, infraccion FROM datos WHERE placa = '$placas'");
if(mysql_num_rows($cslt)!=0)
{
$resultado = "";
while ($row = mysql_fetch_assoc($cslt))
{
$resultado .= "<tr><td>".$row ['nombre_infractor'] . "</td><td>".$row ['infraccion'] . "</td></tr>";
}
}
else
{
$resultado = "No hubo coincidencias encontradas";
}
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RESULTADOS</title>
</head>
<body>
<table border="1">
<tr align="center" bgcolor="#CC00CC" bordercolor="#000000">
<td>Nombre</td>
<td>Infraccion</td>
<?php
echo $resultado
?>
</table>
</body>
</html>