Ver Mensaje Individual
  #7 (permalink)  
Antiguo 15/05/2011, 21:40
gmzatos
 
Fecha de Ingreso: mayo-2011
Mensajes: 18
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Ultimas noticias en mi web.

Miren el codigo es este:

aca llama las funciones:

Código PHP:
Ver original
  1. <?php
  2. $titulo = $_POST['titulo'];
  3. $desc = $_POST['desc'];
  4. $aut = $_POST['aut'];
  5. ?>

Y este seria un formulario aparte para poner las noticias:

Código HTML:
Ver original
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  2. <title>Pon tu noticia</title>
  3. </head>
  4.  
  5. <form id="form1" name="form1" method="post" action="index.php">
  6.   <p>
  7.     <label for="titulo">Titulo: </label>
  8.     <input type="text" name="titulo" id="titulo" />
  9.   </p>
  10.   <p>
  11.     <label for="aut">Autor:</label>
  12.     <input type="text" name="aut" id="aut" />
  13.   </p>
  14.   <p>
  15.     <label for="textarea">Descripción</label>
  16.     :
  17.   </p>
  18.   <p>
  19.     <textarea name="desc" cols="60" rows="20" id="textarea" style="width:auto; height:auto;"></textarea>
  20.   </p>
  21.   <p>
  22.     <input type="submit" name="enviar" id="button" value="Enviar" />
  23.   </p>
  24. </form>
  25. </body>
  26. </html>

Saludos.