Aggiornamento - ore 13:53
tutto risolto...
sia da
html ---> php --> posta elettronica
che da
flash ---> php --> posta elettronica
in Flash ho avuto un bel po di casini ma
è bastato mettere questa riga nello stesso fotogramma dei contatti
Codice:
System.useCodepage = true;
mentre in
html --->php
PHP:
<?php
if(isset($_POST['pulsante'])){
$nome = stripslashes($_POST['nome']);
$cognome = stripslashes($_POST['cognome']);
$citta = stripslashes($_POST['citta']);
$mittente = stripslashes($_POST['mittente']);
$richiesta = stripslashes($_POST['richiesta']);
$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>Contatti</title></head>
<body style="margin:0px;">
<table cellpadding="0" cellspacing="0" style="height:100%;width:500px;">
<tr><td style="height:100%;padding:20px;vertical-align:top;">
<table><tr>
<td colspan="2"><a href="http://max400.forumfree.it">
<img src="http://image.forumfree.it/4/3/5/8/2/5/1/1275822451.gif" width="100" height="100" alt="" /></a>
</td></tr>
<tr><td width="110"><b>NOME:</b></td>
<td width="300">'.$nome.'</td></tr>
<tr><td><b>COGNOME:</b></td>
<td>'.$cognome.'</td></tr>
<tr><td><b>CITTA:</b></td>
<td>'.$citta.'</td></tr>
<tr><td><b>E-mail:</b></td>
<td>'.$mittente.'</td></tr>
<tr><td><b>Richiesta:</b></td>
<td>'.$richiesta.'</td></tr>
</table></td></tr></table></body></html>';
$destinatario=$_POST['destinatario'];
$headers = "From: $nome $cognome <$mittente>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
mail($destinatario, $oggetto, $sms, $headers);
}
?>
<form action="#" method="POST">
Destinatario: <input type="text" name="destinatario"><br>
-------------------------------------------<br>
Nome: <input type="text" name="nome"><br>
Cognome: <input type="text" name="cognome"><br>
Mittente: <input type="text" name="mittente">
Città: <input type="text" name="citta"><br>
Oggetto: <input type="text" name="oggetto"><br>
Richiesta: <input type="text" name="richiesta"><br>
<input type="submit" name="pulsante" value="invia">
</form>
Tutto in una pagina
ed ecco il risultato...
Ps ho aggiornato il mo nuovo sito (vedi firma) nei menu l'ultima voce "contatti"
si trovano 2 opzioni
- manda un email a max
- scrivi un messaggio a max
entrambi mandano un email con lo stesso messaggio
solo che nel primo mi arriva anche la foto.
Se avete eventuali domande non esitate a contattarmi.
buona giornata!
by max_400
Ps un ultima cosa se volete visualizzare la tabella basta aggiungere la parola border="1"
a questa riga
Codice:
<table cellpadding="0" cellspacing="0" style="height:100%;width:500px;">
subito dopo cellspacing="0"