Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/05/2004, 04:20
mooguel
 
Fecha de Ingreso: diciembre-2002
Mensajes: 102
Antigüedad: 21 años, 3 meses
Puntos: 0
no funciona formulario cgi

hola a todos. conseguí un tutorial flash para hacer un formmail que parecía muy sencillo, pero que no consigo que me funcione. es la 1ª vez q hago esto, así que será ignorancia mía.
esto es lo que lleva el botón send:

on (release) {
// checking if one or two of the two "must"-textfields are empty. (You can change them if you like!)
if (navn ne "" and email ne "") {
e = "0";
snabelatjek = 0;
// This loop counts the number of letters (one at the time) typed in the email-field, and at the same time if a "@" is typed in the field
while (Number(e)<=Number(length(email))) {
if (substring(email, e, 1) eq "@") {
snabelatjek = 1;
}
e = Number(e)+1;
}
// If "snabelatjek = 0 - there is no "@" in the field; the movie goes to the label "advarsel" where the warning is displayed
if (Number(snabelatjek) == 0) {
gotoAndStop("advarsel");
} else {
subject = "formulario información";
recipient = "[email protected]";
// The two variables e og snabelatjek are cleared - so the are not included in the email
e = "";
snabelatjek = "";
// calls the formMail script (on my server) write your own URL
loadVariables("http://cgi.prueba.com/FormMail.pl", "", "POST");
gotoAndStop("sendt");
}
} else {
// If "navn" and "e-mail" are empty - the movie will go to the label (advarsel)
gotoAndStop("advarsel");
}
}


una pregunta: ¿el recipient y el swf deben coincidir en el servidor la dirección de email puede ser exterior, por ejemplo [email protected]?

muchas gracias