Cita:
Iniciado por david_M_G
Prueba asi
Código PHP:
<?php
include("conectarse.php");
if (isset($_POST['Submit'])) {
$nick = $_POST['nick'];
$titulo = $_POST['titulo'];
$chiste = $_POST['chiste'];
//if (strlen($nick)>8 && 4>strlen($nick)) {echo "El nick debe tener como maximo 8 caracteres y como minimo 4"; break;}
//if (strlen($titulo)<9 && 19<strlen($titulo)){echo "El titulo debe tener como minimo 10 caracteres y como maximo 20"; break;}
//if (strlen($chiste) && strlen($chiste)){echo "El titulo debe tener como minimo y como maximo"; break;}
conectarse();
$sql="INSERT INTO chistes_sinrevisar (nick,titulo,chiste) VALUES ".$nick.",".$titulo.",".$chiste;
$consulta=mysql_query($sql);
//echo ("Chiste enviado con exito<br><a href=ver_chiste.php>Volver</a>");
}
else
{
echo "<form name=form1 method='post'><p>";
echo "<input type=text name=nick value=Nick...></p><p>";
echo "<input type=text name=titulo value=Titulo...></p><p>";
echo "<textarea name=chiste cols=50 rows=10>Chiste ...</textarea></p></form>";
echo "<p><input type=submit name='Submit' value=Enviar></p>";
}
?>

Lo hice igual a como esta aca pero sigue con lo mismo y me fijo en la bd si inserto algun chiste y no hay nada ...