Comunidad de diseño web y desarrollo en internet online

registro de usuarios

Citar            
MensajeEscrito el 09 Feb 2010 06:42 am
Buenas noches a tod@s me gutaria solicitar un poco de ayuda a ver si mi estimado hernan puede auxiliarme con este detalle o alguien publico este post aki aunk tambien esta hecho con flash pero al momento de ir al registro me sale undefined y no entiendo el motivo pork miren aki les dejo la direccion si alguien me pudiera ayudar porfavor

[url=http://www.miltonomar.com/user/registro.html][/url] en registro porfavor ayuda urgente mi estimado hernan si esk andas por estos rumbos helpme

Por tjmysteri

Claber

138 de clabLevel



 

msie8
Citar            
MensajeEscrito el 09 Feb 2010 01:31 pm
valida que si estas enviando el loadVar, que se llamen igual !U_U

Por jpcw

Claber

1715 de clabLevel

1 tutorial

Genero:Masculino  

AlgoritmicBrainDesigner

firefox
Citar            
MensajeEscrito el 09 Feb 2010 06:30 pm
mi estimado jpcw mira aki te dejo los script k tiene el registro

Código ActionScript :

var passwordLength:Number = 4;


var success:Boolean = false;
status_txt.text = "";
status_txt.autoSize = true;
var dataOut:LoadVars = new LoadVars();
var dataIn:LoadVars = new LoadVars();
dataIn.onLoad = function() {
   var responsetext = this.msgText;
   var nametext = this.nameText;
   status_txt.text = responsetext;
   submitBtn.enabled = true;
   if (responsetext == "Registrado Exitosamente!") {
      _global.whoReg = nametext;
      success = true;
      submitBtn.label = "Continue";
   }
};

submitBtn.onRelease = function() {
   if (success == false) {
      if (password1.text != password2.text) {
         status_txt.text = "Password Mismatch.";
      } else if (username.text == "" || password1.text == "" || password2.text == "" || firstName.text == "" || lastName.text == "" || email.text == "" || address.text == "" || city.text == "" || state_cb.value == "Selecciona tu estado") {
         status_txt.text = "Completa los campos.";
      } else if (password1.length < passwordLength || password2.length < passwordLength) {
         status_txt.text = "Password length too short. " + passwordLength + " or more characters.";
      } else {
         submitBtn.enabled = false;
         status_txt.text = "Registrando...Espera...";
         dataOut.username = username.text;
         dataOut.password = password1.text;
         dataOut.firstName = firstName.text;
         dataOut.lastName = lastName.text;
         dataOut.email = email.text;
         dataOut.phone = phone.text;
         dataOut.address = address.text;
         dataOut.city = city.text;
         dataOut.state = state_cb.value;
         dataOut.zip = zip.text;
         dataOut.sendAndLoad(registerLocation,dataIn,"POST");
      }
   } else {
      _parent.gotoAndStop("login");
   }
};
var keyObj:Object = new Object();
keyObj.onKeyDown = function() {
   if (Key.getCode() == Key.ENTER) {
      if (success == false) {
         if (password1.text != password2.text) {
            status_txt.text = "Password Mismatch.";
         } else if (username.text == "" || password1.text == "" || password2.text == "" || firstName.text == "" || lastName.text == "" || email.text == "" || address.text == "" || city.text == "" || state_cb.value == "Selecciona tu estado") {
            status_txt.text = "Completa los campos.";
         } else if (password1.length < passwordLength || password2.length < passwordLength) {
            status_txt.text = "Password length too short. " + passwordLength + " or more characters.";
         } else {
            submitBtn.enabled = false;
            status_txt.text = "Registrando...Espera...";
            dataOut.username = username.text;
            dataOut.password = password1.text;
            dataOut.firstName = firstName.text;
            dataOut.lastName = lastName.text;
            dataOut.email = email.text;
            dataOut.address = address.text;
            dataOut.city = city.text;
            dataOut.state = state_cb.value;
            dataOut.sendAndLoad(registerLocation,dataIn,"POST");
         }
      } else {
         _parent.gotoAndStop("login");
      }
   }
};
Key.addListener(keyObj);


// estados de mexico
state_cb.addItem({data:"-Selecciona tu estado-", label:"-Selecciona tu estado-"});
state_cb.addItem({data:"AGS", label:"Aguascalientes"});
state_cb.addItem({data:"B.C.N", label:"Baja California"});
state_cb.addItem({data:"B.C.S", label:"Baja California Sur"});
state_cb.addItem({data:"CAMP", label:"Campeche"});
state_cb.addItem({data:"CHIH", label:"Chihuahua"});
state_cb.addItem({data:"COAH", label:"Coahuila"});
state_cb.addItem({data:"COL", label:"Colima"});
state_cb.addItem({data:"CHIS", label:"Chiapas"});
state_cb.addItem({data:"D.F", label:"D.F"});
state_cb.addItem({data:"DGO", label:"Durango"});
state_cb.addItem({data:"EDO MEX", label:"Estado de Mexico"});
state_cb.addItem({data:"GTO", label:"Guanajuato"});
state_cb.addItem({data:"GRO", label:"Guerrero"});
state_cb.addItem({data:"HGO", label:"Hidalgo"});
state_cb.addItem({data:"JAL", label:"Jalisco"});
state_cb.addItem({data:"MICH", label:"Michoacan"});
state_cb.addItem({data:"MOR", label:"Morelos"});
state_cb.addItem({data:"NAY", label:"Nayarit"});
state_cb.addItem({data:"N.L", label:"Nuevo Leon"});
state_cb.addItem({data:"OAX", label:"Oaxaca"});
state_cb.addItem({data:"PUE", label:"Puebla"});
state_cb.addItem({data:"QRO", label:"Queretaro"});
state_cb.addItem({data:"Q.R", label:"Quintana Roo"});
state_cb.addItem({data:"S.L.P", label:"San Luis Potosi"});
state_cb.addItem({data:"SIN", label:"Sinaloa"});
state_cb.addItem({data:"SON", label:"Sonora"});
state_cb.addItem({data:"TAB", label:"Tabasco"});
state_cb.addItem({data:"TAM", label:"Tamaulipas"});
state_cb.addItem({data:"TLX", label:"Tlaxcala"});
state_cb.addItem({data:"VER", label:"Veracruz"});
state_cb.addItem({data:"YUC", label:"Yucatan"});
state_cb.addItem({data:"ZAC", label:"Zacatecas"});


var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object):Void  {
   var currentlySelected:Object = evt_obj.target.selectedItem;

};
state_cb.addEventListener("change",cbListener);


y esta es la forma enk se llaman a los php

Código ActionScript :

_global.registerLocation = "register.php";
_global.loginLocation = "login.php";
_global.newPWLocation = "newpw.php";
_global.updateLocation = "updateProfile.php";

aver si me podrias ayudar porfavor gracias

Por tjmysteri

Claber

138 de clabLevel



 

msie8

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.