XD estoy en todos lados...
Código:
<?php
include("conectarse.php");
?>
<?php
if (!isset($_POST['Submit'])) {
?>
<form name=form1 method='post'><p>
<input type=text name=nick value=Nick...></p><p>
<input type=text name=titulo value=Titulo...></p><p>
<textarea name=chiste cols=50 rows=10>Chiste ...</textarea></p>
<p><input type=submit name='Submit' value=Enviar></p>
</form>
<?php
}else{
?>
<?php
$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=mysql_query("INSERT INTO chistes_sinrevisar (nick,titulo,chiste) VALUES ('$nick','$titulo','$chiste')",$con) or die("No se pudo realizar la consulta");
# echo " ".$sql." ";
# $consulta=mysql_query($sql) or die("No se pudo realizar la consulta");
?>
<?php
}
?>
Espero que de esta forma te funcione, suerte che!
Saludos