Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/05/2008, 08:11
Avatar de Darth_Carl
Darth_Carl
 
Fecha de Ingreso: mayo-2008
Ubicación: En Foros DWP
Mensajes: 160
Antigüedad: 16 años
Puntos: 8
Re: Calendario con php+mysql

Aqui el form prometido:

Código HTML:
<form method="POST" action="introduct.php">
<p>Escribe el evento(s):<p>
<p><textarea rows="2" name="event" cols="20"></textarea><p>
<p>Escribe el día (dd):<p>
<p><input type="text" name="day" id="day" size="10"><p>
<p>Escribe el mes (mm):<p>
<p><input type="text" name="month" id="month" size="10"><p>
<p>Escribe el año (aaaa):<p>
<p><input type="text" name="year" id="year" size="10"><p>
<p><input type="submit" value="Enviar"/><p>
</form> 
Y el introduct.php:
Código PHP:
<?php
include("config.php");
mysql_query("insert into events(day,month,year,event) values ($_POST['day'], $_POST['month'], $_POST['year'], $_POST['event'])
?>