Cita:
Iniciado por Hidek1
mmm en realidad nada q ver con jquery... solo pega el codigo completo que usas y te digo q pasa
Ok
function guardar(){
$fecha_1 = $_POST['fec_estim_cambio_1'];
list($m, $d, $y) = split("/", $fecha_1);
$fec_estim_cambio = $y . "-" . $m . "-" . $d;
$rsql = "INSERT INTO tabla(fecha) VALUES ($fec_estim_cambio);
$res = mysql_query($rsql) or die("Error: " .mysql_error());
}
if(isset($_POST['enviar'])){
guardar();
}//fin if post
<form method="post" action="prueba.php">
.
.
.
<input type="text" id="algo" name="fecha"></input>
.
.
.
<td colspan="2" align="center"><input type="submit" value="Enviar datos" name="enviar"></input></td>
.
.
</html>
Lo resumí lo más que pude, mi código completo excede las 1000 líneas.
Muchas gracias!