Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/09/2010, 11:44
Avatar de Lautaro_eb
Lautaro_eb
 
Fecha de Ingreso: mayo-2010
Ubicación: Bariloche, Argentina
Mensajes: 284
Antigüedad: 14 años
Puntos: 24
Respuesta: El Varchar no me guarda tangs ??

ya Intente de todas las formas cuando pongo la etiqueta <a href='google.com.ar'> no lo envia.
Dejo los codigos :(
Php Q Sube ala db
Código PHP:
<?php
session_start
();
if(
$_SESSION['Estado'] == 0) { header("location: ".$webhttp); }
include 
"../include/conexion.php";
$Titulo $_GET["title1a"];
$Comentario $_GET['comentario'];
if(
$Titulo == "" && Comentario == ""){
    
//header("location: ".$webhttp."subnot?error=Camp");
}
else if(
$Titulo == "" && $Comentario == "Ecribe Aqui la Noticia."){
    
//header("location: ".$webhttp."subnot?error=CampT");
}
else if(
$Titulo == ""){
    
//header("location: ".$webhttp."subnot?error=CampT2?".$Titulo."");
}
else if(
$Comentario == ""){
    
//header("location: ".$webhttp."subnot?error=Coment");
}
else if(
$Comentario == "Ecribe Aqui la Noticia."){
    
//header("location: ".$webhttp."subnot?error=valid");
}
else{
    
$fecha date("Y/n/d");
    
$sql "insert into noticias (titulo,comentario,fecha) values ('".htmlentities($Titulo)."','".htmlentities($Comentario)."','".$fecha."')";
    
$query mysql_query($sql,$conexion);
    
//header("location:".$webhttp."?error=post");
}
mysql_close();
?>
Formulario
Código PHP:
<? session_start(); ?>
<head>
    <title>Subir Noticia</title>
</head>
<?
include "../include/button.php"
$error $_GET['ERROR'];
$errorT $_GET['ERRORT'];
$errorC $_GET['ERRORC'];
if(
$error == ""){}
else{
    echo 
$error
}
?>
<html>
    <body>
    <center>
    <form method="get" action="dnoticia.php">
    <table border="0" width='50%'>
        <tr>
            <td height="15%" valign="top">Titulo:<br>Comentario:</td>
    <td height="15%" width="80%">
    <input type="text" name="title1a" id="title1a"/>
    <? if($errorT == ""){
    }
    else{
         echo 
$errorT
    }
?><br />
    <textarea rows="5" cols="50" name="comentario">
    <? 
    
if($errorC == ""){
        echo 
"Ecribe Aqui la Noticia.";
    } 
    else{ 
        echo 
$errorC;
    }
    
?>
    </textarea><br />
    <input type="submit" value="Publicar Noticia"/></td>
    </table>
    </center>
    </body>
</html>