Muchas gracias a los que me ayudan.... Salu2
![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif)
Mi base de datos creada:
![](http://s2.subirimagenes.com/imagen/previo/thump_9339272hola.png)
Codigo de mi html
Código PHP:
Numero :
<form action="formulario.php" method="post" name="form">
<input type="text" name="numero">
<label></label>
<p>Codigo :
<input name="codigo" type="text" maxlength="3">
</p> mes:
<input name="fecha" type="text" maxlength="5">
<input type="submit" value="Confirmar ahora">
</form>
Código PHP:
include("conexion.php");
if (isset($_POST['numero']) && !empty($_POST['numero']) &&
isset($_POST['codigo']) && !empty($_POST['codigo']) &&
isset($_POST['fecha']) && !empty($_POST['fecha'])) &&
{
$conexion = mysql_conect($host,$user,$pw)or die("problemas");
mysql_select_db($bd,$conexion)or die("Problemas");
mysql_query("INSERT INTO aquiminombredetabla(numero,codigo,fecha)
VALUES ('$_POST[numero]','$_POST[codigo]','$_POST[fecha]'),$conexion);
echo "Gracias por confirmar";
}
?>
Código PHP:
<?php
$host = "mysql.hostinger.es" ---> aqui tambien trate de usar 'localhost';
$user = "u0020_srmys";
$pw = "0000**";
$bd = "u00020_form";
?>
</body>