oye una pregunta tu sabes si esto esta guardando bien .. osea el if esta actuando como deberia actuar??
Código PHP:
Ver original<!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>Untitled Document</title>
</head>
<body>
<p>
<?php
require_once('configuration.php');
include ("conex.php");
$link = Conectarse();
$Tipo = $_POST['Tipo'];
$Autor = $_POST['Autor'];
$Titulo = $_POST['Titulo'];
$Logo = $_FILES['Logo']['name']; // Nombre del archivo
$Descripcion = $_POST['Descripcion'];
$carpeta = './Logos'; // Ruta donde guardaremos el archivo subido
$id= $_POST['id'];
echo $Tipo;
if($Tipo='Empresas de Segurida')
{
if ($Logo)
{
{
$sql = mysql_query("INSERT INTO ofertas_seguridad (Autor,Titulo,Descripcion,TipoEmpresa, Imagen, id_usuario) VALUES ('$Autor','$Titulo','$Descripcion','$Tipo','$Logo', '$id');",$link); }
}
}
elseif($Tipo='Empresas de Dotacion')
{
if ($Logo)
{
{
$sql1 = mysql_query("INSERT INTO ofertas_dotacion (Autor,Titulo,Descripcion,TipoEmpresa, Imagen, id_usuario) VALUES ('$Autor','$Titulo','$Descripcion','$Tipo','$Logo', '$id');",$link); }
}
}
elseif($Tipo='Escuelas de Capacitacion')
{
if ($Logo)
{
{
$sql2 = mysql_query("INSERT INTO ofertas_escuelas (Autor,Titulo,Descripcion,TipoEmpresa, Imagen, id_usuario) VALUES ('$Autor','$Titulo','$Descripcion','$Tipo','$Logo', '$id');",$link); }
}
}
?>
<br />
</p>
<form id="form1" name="form1" method="post" action="oferta.php">
<div align="center">
<p>Oferta Registrada</p>
<p>
<label>
<input type="submit" name="button" id="button" value="Continuar" />
</label>
</p>
</div>
</form>
</div>
</form>
</p>
<p> </p>
</body>
</html>