formail

framan82

Nuovo Utente
13 Mag 2005
1
0
0
Salve a tutti, ho un formail fatto in swish, compilando tutti i campi, nome, cognome, ecc...., e poi pigiando il tasto invia, non invia nulla lo script in php è il seguente:

<?php
*/

$message = $HTTP_POST_VARS['Message'];
$name = $HTTP_POST_VARS['Name'];
$email = $HTTP_POST_VARS['Email'];


// Begin Censors
$message = eregi_replace('fuck', "flip", $message);
$message = eregi_replace('shit', "crap", $message);
$message = eregi_replace('bitch', "nice lady", $message);
$message = eregi_replace('ass', "butt", $message);
$message = eregi_replace('piss', "pee", $message);


$name = stripslashes($name);
$email = stripslashes($email);
$message = stripslashes($message);


$rec_email = "MyEmail";
$subject = "Template: Informazioni";



$msg_body = "Message from $SERVER_NAME\n";
$msg_body .= " ****************************************
*\n";
$msg_body .= "Name: $name\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Message: $message\n";
$msg_body .= " ****************************************
*\n";
$msg_body .= "\n\n";
$msg_body .= "Additional Sender Information\n";
$msg_body .= " ****************************************
*\n";
$msg_body .= "IP Address: $REMOTE_ADDR\n";
$HostName = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$msg_body .= "Host: $HostName\n";
$msg_body .= "User Agent: $HTTP_USER_AGENT\n";
$msg_body .= " ****************************************
*\n";

$header_info = "From: ".$name." <".$email.">";


mail($rec_email, $subject, $msg_body, $header_info);

?>


mentre questo e lo script riferito al bottone INVIA del form:

on (release) {
if (!_root.pages.contact.Name.length) {
_root.pages.contact.Status = "INSERISCI IL TUO NOME";
} else {
if (!_root.pages.contact.Email.length || _root.pages.contact.Email.indexOf("@") == -1 || _root.pages.contact.Email.indexOf(".") == -1) {
_root.pages.contact.Status = "INSERISCI UN VALIDO INDIRIZZO E-MAIL";
} else {
if (!_root.pages.contact.Message.length) {
_root.pages.contact.Status = "INSERISCI IL TUO MESSAGGIO";
} else {
as well
Name = _root.pages.contact.Name;
Email = _root.pages.contact.Email;
Message = _root.pages.contact.Message;
Status = "";
loadVariablesNum("st_mailform_script.php",0,'POST');
_root.pages.contact.gotoAndPlay("submitted");
}
}
}
}

Ho controllato tutti i campi ed i nomi sono tutti corretti!!
Qualcuno sa dirmi perchè non funziona???
grazie a tutti,
 

Discussioni simili