Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/10/2003, 20:46
Lusus
 
Fecha de Ingreso: septiembre-2003
Mensajes: 3
Antigüedad: 20 años, 7 meses
Puntos: 0
Ayuda, No entiendo que pasa con este codigo

no funciona,necesito ingresar datos a una base de datos y luego eliminarlos. para esto en el boton hago:
on (release) {
if (f != null && mc != null && mh != null && mf != null && est != null) {
eliminar();
}
}

y en una capa:
function ingresar() {
us = SharedObject.getLocal("usuario", "/~eta/NeoKumon/");
rut_a = us.data.rut_al;
ingresan = new LoadVars();
ingresan.mesano = f;
ingresan.mcuadern = mc;
ingresan.rcuadern = rc;
ingresan.mhojas = mh;
ingresan.rhojas = rh;
ingresan.mfrec = mf;
ingresan.rfrec = rf;
ingresan.estudio = est;
ingresan.comentarios = com;
ingresan.rut = rut_a;
ingresan.onLoad = function(succes) {
//= function(success) {
status = "Su Mensaje Fue enviado Correctamentexssxsx";
};
ingresan.sendAndLoad("ingresometa.php", ingresan, "POST");
getURL("Metas%20Mensuales.html","_self");

}
function eliminar() {
us = SharedObject.getLocal("usuario", "/~eta/NeoKumon/");
rut_a = us.data.rut_al;
eliminam = new LoadVars();
eliminam.rut = rut_a;
eliminam.mesano = f;
//trace(_level0.ma);
eliminam.onLoad = function(succes) {
//= function(success) {
status = "Su Mensaje Fue enviado Correctamente";
};
eliminam.sendAndLoad("eliminarmeta.php", eliminam, "POST");
ingresar();
}

se que me toma bien el rut guardado en el shared object, la cosa es que no pasa por ninguno de los php pero si se va a la siguiente pagina, No entiendo. Si alguien me pudiera ayudar muchas gracias.