Código PHP:
if($accion=="enviar"){
$sql=mysql_query("INSERT INTO tabla (fecha) VALUES ('$fecha')");
} else {
$fechax = date("d-m-Y");
echo "
<form method=post action=$PHP_SELF?accion=enviar>
<input type=hidden name=fecha value=\"$fechax\">
<input type=submit value=\"Insertar Fecha\">";
}
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
jej