Comunidad de diseño web y desarrollo en internet online

problema con formulario

Citar            
MensajeEscrito el 15 May 2010 05:05 pm
estoy haciendo un formulario
pero me sale este error al rellenar los datos



me dice

que escriba bien mi nombre y apellido


ese es el accion q esta en fotograma

Código ActionScript :

stop ();

this.rpta.text = "";

this.enviar.onRelease = function ()

{

    var _loc6 = "";

    if (this._parent.nombre.text == "" || this._parent.telefono.text == "" || this._parent.ciudad.text == "" || this._parent.distrito.text == "" || this._parent.direccion.text == "" || this._parent.correo.text == "" || this._parent.hijos.text == "")

    {

        _loc6 = "Llene todos los campos";

        var _loc7 = 1;

    }

    else

    {

        var _loc8 = this._parent.nombre.length;

        var _loc4 = this._parent.nombre.text;

        _loc7 = 0;

        for (var _loc3 = 0; _loc3 < _loc8; ++_loc3)

        {

            if (!(_loc4.charCodeAt(_loc3) >= 65 && _loc4.charCodeAt(_loc3) <= 90 || _loc4.charCodeAt(_loc3) >= 97 && _loc4.charCodeAt(_loc3) <= 122 || _loc4.charAt(_loc3) == " "))

            {

                _loc6 = "Escriba bien su nombre y apellidos";

                _loc7 = 1;

                break;

            } // end if

        } // end of for

    } // end else if

    if (_loc7 == 0)

    {

        objdata = new LoadVars();

        objdata.onLoad = function ()

        {

            _root.rpta.text = this.mensaje;

            _root.nombre.text = "";

            _root.telefono.text = "";

            _root.ciudad.text = "";

            _root.distrito.text = "";

            _root.direccion.text = "";

            _root.correo.text = "";

            _root.hijos.text = "";

            _root.hijo1.text = "";

            _root.edad1.text = "";

            _root.cumple1.text = "";

            _root.hijo2.text = "";

            _root.edad2.text = "";

            _root.cumple2.text = "";

            _root.hijo3.text = "";

            _root.edad3.text = "";

            _root.cumple3.text = "";

        };

        var _loc5 = "";

        _loc5 = "Nombre y Apellidos: " + this._parent.nombre.text + " \n";

        _loc5 = _loc5 + ("Telefono: " + this._parent.telefono.text + " \n");

        _loc5 = _loc5 + ("Ciudad: " + this._parent.ciudad.text + " \n");

        _loc5 = _loc5 + ("Distrito: " + this._parent.distrito.text + " \n");

        _loc5 = _loc5 + ("Direccion: " + this._parent.direccion.text + " \n");

        _loc5 = _loc5 + ("E-mail: " + this._parent.correo.text + " \n");

        _loc5 = _loc5 + ("Hijos: " + this._parent.hijos.text + " \n");

        _loc5 = _loc5 + ("Primer hijo: " + this._parent.hijo1.text + " \n");

        _loc5 = _loc5 + ("Edad: " + this._parent.edad1.text + " \n");

        _loc5 = _loc5 + ("Cumple: " + this._parent.cumple1.text + " \n");

        _loc5 = _loc5 + ("Segundo Hijo: " + this._parent.hijo2.text + " \n");

        _loc5 = _loc5 + ("Edad: " + this._parent.edad2.text + " \n");

        _loc5 = _loc5 + ("Cumple: " + this._parent.cumple2.text + " \n");

        _loc5 = _loc5 + ("Tercer Hijo: " + this._parent.hijo3.text + " \n");

        _loc5 = _loc5 + ("Edad: " + this._parent.edad3.text + " \n");

        _loc5 = _loc5 + ("Cumple: " + this._parent.cumple3.text + " \n");

        objdata.contenidox = _loc5;

        objdata.emailx = this._parent.correo.text;

        objdata.sendAndLoad("../mail2.php",objdata,"POST");

        this._parent.rpta.text = "Enviando informacion...";

    } // end if

    if (_loc7 == 1)

    {

        this._parent.rpta.text = _loc6;

    } // end if

};

this.borrar.onRelease = function ()

{

    this._parent.nombre.text = "";

    this._parent.telefono.text = "";

    this._parent.ciudad.text = "";

    this._parent.distrito.text = "";

    this._parent.direccion.text = "";

    this._parent.correo.text = "";

    this._parent.hijos.text = "";

    this._parent.hijo1.text = "";

    this._parent.edad1.text = "";

    this._parent.cumple1.text = "";

    this._parent.hijo2.text = "";

    this._parent.edad2.text = "";

    this._parent.cumple2.text = "";

    this._parent.hijo3.text = "";

    this._parent.edad3.text = "";

    this._parent.cumple3.text = "";

};





osea yo creo q poniendo cualquier nombre aun q sea un solo nombre tendria enviarlo


PD: espero que me puedan ayudar gracias

Por crack16

3 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 May 2010 02:14 am
mejor dejo el .fla

[url=http://www.fileden.com/files/2006/8/5/156558/sorteo.rar][/url]

Por crack16

3 de clabLevel



 

firefox

 

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