Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/06/2005, 11:23
Avatar de Sonbrita
Sonbrita
 
Fecha de Ingreso: noviembre-2002
Ubicación: Canada
Mensajes: 392
Antigüedad: 21 años, 5 meses
Puntos: 1
Se me hace bolas lo del php.! jejejeje

No se donde va hubicado mi email aqui en este script

================================================== ========


fscommand ("allowscale", "false");
fname1.tabIndex = 1;
lname1.tabIndex = 2;
email1.tabIndex = 3;
telno1.tabIndex = 4;
comments1.tabIndex = 5;
mailform = "mailform.php";
confirm = "please wait for confirmation ..."
action = "send";
Selection.setFocus("fname");
function validate (address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".") ) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
function formcheck () {
if ((((email == null)) || (email.length<1)) || (email == "ERROR! Address not valid")) {
email = "ERROR! Address not valid";
action = "";
}
if (!validate(email)) {
email = "Address not valid";
action = "";
}
if ((((fname == null)) || (fname.length<1)) || (fname == "ERROR! Address not valid")) {
fname = "Name required";
action = "";
}
if ((((lname == null)) || (lname.length<1)) || (lname == "ERROR! Address not valid")) {
lname = "Name required";
action = "";
}
if ((validate(email)) && (email != "ERROR!") && (fname != "") && (lname != "")) {
action = "send";
loadVariablesNum (mailform, 0, "POST");
gotoAndPlay ("wait");
}
}
stop ();



================================================== ========