ok...
formulario registro_vehiculo.php
Código PHP:
Ver original<form method="post" name="formulario" action="insertar.php" enctype="multipart/form-data" >
<table border="1" width="249">
<tr>
<td width="98">Nombre:</td>
<td width="135"><input type="text" name="nombre" size="20" /></td>
</tr>
<tr>
<td width="98">Apellidos:</td>
<td width="135"><input type="text" name="apellidos" size="20" /></td>
</tr>
<tr>
<td width="98">Telefono:</td>
<td width="135"><input type="text" name="fono" size="20" /></td>
</tr>
<tr>
<td width="98">Direccion:</td>
<td width="135"><input type="text" name="direccion" size="20" /></td>
</tr>
<tr>
<td width="98">Email:</td>
<td width="135"><input type="text" name="email" size="20" /></td>
</tr>
</table>
<div align="right"><strong class="Estilo1">(*)<span class="Estilo5"> - Campos Obligatorios</span></strong></div><br/>
<table align="center" border="1" width="90%" bgcolor="#CCCCCC">
<tr>
<td width="105"><strong class="Estilo1">Vehiculo Nuevo</strong></td>
<td width="171"> <select name="nuevo">
<option>Seleccione Una Opcion...</option>
<option value="no">NO</option>
<option value="si">SI</option>
</select></td>
<td width="105"><strong class="Estilo1">Tipo Vehiculo(*)</strong></td>
<td width="171"> <?php include ('tipo_vehiculo.php');?></td>
</tr>
<tr>
<td width="105"><strong class="Estilo1">Carroceria(*)</strong></td>
<td width="171"><div id="resultado"></div></td>
<td width="105"><strong class="Estilo1">Marca(*)</strong></td>
<td width="171"> <input type="text" name="marca" /></td>
</tr>
<tr>
<td width="105"><strong class="Estilo1">Modelo(*)</strong></td>
<td width="171"> <input type="text" name="modelo" /></td>
<td width="105"><strong class="Estilo1">Año(*)</strong></td>
<td width="171"> <input type="text" name="ano" size="8" /></td>
</tr>
<tr>
<td width="105"><strong class="Estilo1">Patente(*)</strong></td>
<td width="171"> <input type="text" name="patente" size="8" maxlength="6" onBlur="this.value = RvalPat(this.value)"/></td>
<td width="105"><strong class="Estilo1">Precio(*)</strong></td>
<td width="171"> <input type="text" name="precio" maxlength="11" onBlur="this.value=retInt(this.value)"/></td>
</tr>
<tr>
<td width="105"><strong class="Estilo1">Descripcion(*)</strong></td>
<td width="171" align="center"><textarea name="otro" rows=4 cols=40 ></TEXTAREA></FONT></td>
<td width="105"><strong class="Estilo1">Radio</strong></td>
<td width="171" align="center"><input type="checkbox" name="radio" /></td>
</tr>
<tr>
<td width="105"><strong class="Estilo1">Imagen</strong></td>
<td width="171"> <input name="foto" type="file" size="35" value="noimagen.jpg" />
<input name="action" type="hidden" value="upload" /></td>
<td width="105"><strong class="Estilo1">Alarma</strong></td>
<td width="171" align="center"><input type="checkbox" name="alarma"/></td>
</tr>
</table>
<br />
<br />
<center>
<input type="submit" value="Enviar" onclick="valida()">
</center>
</form>
y aka lo kiero mostrar... publicacion.php
Código PHP:
Ver original<?php
include ('conexion.php');
$cod = $_GET['id'];
$sql = mysql_query("SELECT * FROM datos_auto WHERE patente = '$cod'");
?>
<!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=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
<!--
.Estilo2 {font-size: 18px}
.Estilo3 {font-size: 16px}
.Estilo4 {font-size: 24px; font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<?php
{
?>
<table align="center">
<tr bgcolor="#ffffff">
<td class="Estilo4" align="center"><?php echo $fila['marca'];?></td>
</tr>
</table><br /><br />
<img src="imagenes/<?php echo $row['imgane']; ?>">
<div align="center"><a href="registro_vehiculo.php?modo=1&id=<?php echo $fila['id']?>">Modificar Publicacion</a> - <a href="#">Eliminar Publicacion</a></div>
<hr />
<table align="center" width="950" height="59" border="1">
<tr>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Nuevo</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Tipo De Vehiculo</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Carroceria</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Modelo</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Marca</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Año</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Patente</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Región</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Ciudad</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Precio</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Radio</div></td>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Alarma</div></td>
</tr>
<tr>
<td class="Estilo3"><div align="center"><?php echo $fila["nuevo"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["tipo_vehi"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["carroceria"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["modelo"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["marca"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["ano"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["patente"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["region"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["ciudad"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["precio"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["radio"]?></div></td>
<td class="Estilo3"><div align="center"><?php echo $fila["alarma"]?></div></td>
</tr>
</table>
</p>
</p>
<table align="center" width="950" height="40" border="1">
<tr>
<td width="300" bgcolor="#a4c2c2"><div align="center" class="Estilo2">Descripcion</div></td>
</tr>
<tr>
<td class="Estilo3"><div> <?php echo $fila["otro"]?></div></td>
</tr>
<?php
}
?>
</table>
</body>
</html>
ojo... el nombre del campo se llama imgane me vine a dar cuenta despues .....