Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/04/2005, 11:20
Avatar de isaacluz
isaacluz
 
Fecha de Ingreso: marzo-2005
Mensajes: 180
Antigüedad: 19 años, 1 mes
Puntos: 0
A ver, algo asi...

Código:
<?
if ($Placas){
	// ESTA DEBERÁ DE SER TU CONSULTA 
	$Datos = ConsultDb ("SELECT * FROM tabla WHERE placas='$Placas'");
	if ($Datos){
		$Mensaje = "Ya estaba, registrada esta placa";
	}else{
		$Mensaje = "No hay datos de esas placas";
	}
}else{
	$Mensaje = "Compruebe si ya existen las placas";
}
?>
<html>
<body>
<?=$Mensaje?>
<!-- ESTA FORMA SERIA SOLO PARA OBTENER LOS DATOS-->
<form  method="post" action="">
  <input name="Placas" type="text" id="Placas" value="<?=$Placas?>">
  <input type="Accion" name="Buscar">
  <input type="submit" name="Submit" value="Comprobar Existencia">
</form>
<hr>
<!-- Y ESTA PARA MOSTRAR LOS DATOS Y MANDARLOS A HACER ALGO-->
<form  method="post" action="otroarchivo.php">
  <input name="Dueno" type="text" id="Placas" value="<?=$Dueno?>">
  <input name="Estado" type="text" id="Placas2" value="<?=$Estado?>">
  <input name="Etc" type="text" id="Placas2" value="<?=$Etc?>">
  <input type="submit" name="Submit2" value="Submit">
</form>
</body>
</html>

Última edición por isaacluz; 01/04/2005 a las 11:21