ciao ragazzi, ho creato un form mail in flash ke dovrebbe inviare una specie di tagliando.
il tutto funziona ma non visualizza l'immagine.
Non so se è la sezione giusta visto ke si tratta anke di html.
Questo è il file php: i link sono giusti..se mi ci date un'okkiata vi ringrazio tanto!
<?php
$casellaNome = stripslashes($_POST['Nome']);
$casellaAzienda = stripslashes($_POST['Azienda']);
$casellaEmail = stripslashes($_POST['Email']);
$casellaData = stripslashes($_POST['Data']);
$casellaTelefono = stripslashes($_POST['Telefono']);
$casellaGiorno = stripslashes($_POST['Giorno']);
$casellaMese = stripslashes($_POST['Mese']);
$casellaAnno = stripslashes($_POST['Anno']);
$casellaOra = stripslashes($_POST['Ora']);
$casellaMinuti = stripslashes($_POST['Minuti']);
$casellaNote = stripslashes($_POST['Note']);
$sms = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PRENOTAZIONE</title>
<style type="text/css">
td{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#666666;
}
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 293px;
top: 104px;
}
#Layer2 {
position:absolute;
width:200px;
height:115px;
z-index:2;
left: 221px;
top: 377px;
}
</style>
</head>
<body style="margin:0px;">
<table width="409" height="303" cellpadding="0" cellspacing="0" style="height:278px;width:411px;">
<tr>
<td height="301" background="http://morfgraphix.altervista.org/ADPLAN/php/tagliando.jpg" style="height:100%;padding:20px;vertical-align:top;"><table>
<tr>
<td height="42" valign="bottom"></td>
<td valign="bottom">'.$casellaData.'</td>
<td valign="bottom"></td>
<td valign="bottom"></td>
</tr>
<tr>
<td height="42" valign="bottom"></td>
<td valign="bottom">'.$casellaPranzo.'</td>
<td valign="bottom"></td>
<td valign="bottom">'.$casellaCena.'</td>
</tr>
<tr>
<td height="29" valign="bottom"></td>
<td valign="bottom">'.$casellaCarne.'</td>
<td valign="bottom"></td>
<td valign="bottom">'.$casellaPesce.'</td>
</tr>
<tr>
<td height="38" valign="bottom"></td>
<td valign="bottom">'.$casellaConvT.'</td>
<td valign="bottom"></td>
<td valign="bottom"></td>
</tr>
<tr>
<td height="34" valign="bottom"></td>
<td valign="bottom">'.$casellaConvL.'</td>
<td valign="bottom"></td>
<td valign="bottom"></td>
</tr>
<tr>
<td width="31" height="35" valign="bottom"></td>
<td width="93" valign="bottom">'.$casellaNome.'</td>
<td width="101" valign="bottom"></td>
<td width="124" valign="bottom"></td>
</tr>
<tr>
<td width="31" valign="bottom"></td>
<td width="93" valign="bottom">'.$casellaAzienda.'</td>
<td width="101" valign="bottom"></td>
<td width="124" valign="bottom"></td>
</tr>
<tr>
<td valign="bottom"></td>
<td valign="bottom">'.$casellaEmail.'</td>
<td valign="bottom"></td>
<td valign="bottom"></td>
</tr>
<tr>
<td colspan="4"></td>
</tr>
</table></td>
</tr></table>
</body></html>';
$headers = "From: $casellaNome $casellaAzienda <$casellaEmail>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$oggetto = " Richiesta Prenotazione da www.adplan.it\n";
if(mail($_POST['destinatario'], $oggetto, $sms, $headers)){
echo '&controllo=invio avvenuto con successo.';
}
else{
echo '&controllo=errore: e-mail non inviata.';
}
?>