Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/07/2003, 13:05
Avatar de camargo
camargo
 
Fecha de Ingreso: abril-2002
Ubicación: Kerétaro, Méjiko
Mensajes: 1.045
Antigüedad: 22 años
Puntos: 2
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\">"
;

jej
__________________
http://www.chorcha.com