Ver Mensaje Individual
  #11 (permalink)  
Antiguo 09/07/2007, 11:47
Avatar de carmagedon
carmagedon
 
Fecha de Ingreso: junio-2005
Ubicación: Argentina
Mensajes: 794
Antigüedad: 18 años, 11 meses
Puntos: 23
Re: Mi no comprende

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