io ho legermente modificato lo script ti faccio vedere
codice:this.pul_ctb.onRelease = function() { vars = new LoadVars(); // inseriamo le variabili nell'oggetto vars.name = name; vars.email = email; trace("invio la variabile name a :" +name); trace("invio la variabile email a :"+email); // carichiamo lo script PHP vars.sendAndLoad("mess.php", vars, "POST"); vars.onLoad = function () { mess = vars.mess; error = vars.error; trace("la variabile error equivale a :"+this.error); trace("la variabile mess equivale a :"+this.mess); } };
ti posto il trace
codice:invio la variabile name a : invio la variabile email a : la variabile error equivale a : Impossibile stabilire una connessione"); @mysql_select_db($CONFIG['dbname']) or die("Errore nel DB"); //No need to change anything below ... // Gets the date and time from your server $date = date("d/m/Y H:i:s"); // Gets the IP Address if ($_SERVER['REMOTE_ADDR'] == "") { $ip = "no ip"; } else { $ip = gethostbyaddr($_SERVER['REMOTE_ADDR']); } // Gets the POST Headers - the Flash variables $action = $_REQUEST['action'] ; $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; //Process the form data! // and send the information collected in the Flash form to Your nominated email address if ($action == "send") { //Innanzitutto controlliamo la var.le name: $controllo = check_email($email); if ($controllo != "OK") { echo $controllo; //Qui potresti anche far visualizzare una cosa del genere: echo " la variabile mess equivale a : OK RIGA INSERITA "; } else { die(mysql_error()); } mysql_close($link_db); //A questo punto inviamo l'e-mail mail ("$adminaddress","informazioni", "L'utente: $name si è iscritto alla MailingList ------------------------------ Name Utente: $name EmailUtente: $emailn ------------------------------ Logged Info : ------------------------------ Using: {$_SERVER['HTTP_USER_AGENT']} Hostname: $ip IP address: {$_SERVER['REMOTE_ADDR']} Date/Time: $date","FROM:$email" ) ; //This sends a confirmation to your visitor mail ("$email","Re:", "Salve $name,n Per confermare l'iscizione alla Newsletter Le basta cliccare sul link sottostante $siteaddress/homeita/mailinglist/conferma.php?email=$email

Rispondi quotando