CODE
<?php
$imie = $_POST['imie'];
$telefon = $_POST['telefon'];
$mail = $_POST['mail'];
$typ = $_POST['typ'];
$adres = $_POST['adres'];
$wiadomosc = $_POST['wiadomosc'];
$temat = substr($wiadomosc,0,15)."...";
$do = "////// <///////>"; //tu wpisz np. swoje imie, a w klamrach <> swojego maila
$wiadomosc_mail = '<html>'.
'<head>'.
'<style type="text/css">'.
'#imie {color:red;}'.
'#wiadomosc {color:silver;}'.
'</style>'.
'</head>'.
'<body>'.
'<p id="imie">Imie:'.$imie.
'<p>telefon:'.$telefon.
'<p>E-mail:'.$mail.
'<p>typ:'.$typ.
'<p>adres:'.$adres.
'<p id="wiadomosc">Wiadomosc:'.$wiadomosc.'</p>'.
'</body>'.
'</html>';
$naglowki = "MIME-Version: 1.0\r\n";
$naglowki .= "Content-type: text/html; charset=UTF-8\r\n";
$naglowki .= "From: MAIL";
mail($do, $temat, $wiadomosc_mail, $naglowki);
echo '&content=Dziękujemy za wypełnienie formularza.';
?>
$imie = $_POST['imie'];
$telefon = $_POST['telefon'];
$mail = $_POST['mail'];
$typ = $_POST['typ'];
$adres = $_POST['adres'];
$wiadomosc = $_POST['wiadomosc'];
$temat = substr($wiadomosc,0,15)."...";
$do = "////// <///////>"; //tu wpisz np. swoje imie, a w klamrach <> swojego maila
$wiadomosc_mail = '<html>'.
'<head>'.
'<style type="text/css">'.
'#imie {color:red;}'.
'#wiadomosc {color:silver;}'.
'</style>'.
'</head>'.
'<body>'.
'<p id="imie">Imie:'.$imie.
'<p>telefon:'.$telefon.
'<p>E-mail:'.$mail.
'<p>typ:'.$typ.
'<p>adres:'.$adres.
'<p id="wiadomosc">Wiadomosc:'.$wiadomosc.'</p>'.
'</body>'.
'</html>';
$naglowki = "MIME-Version: 1.0\r\n";
$naglowki .= "Content-type: text/html; charset=UTF-8\r\n";
$naglowki .= "From: MAIL";
mail($do, $temat, $wiadomosc_mail, $naglowki);
echo '&content=Dziękujemy za wypełnienie formularza.';
?>
oraz kod AS z flasha
CODE
var mail_form:LoadVars = new LoadVars();
var mail_odp:LoadVars = new LoadVars();
var imie:String = "";
var telefon:String = "";
var typ:String = "";
var adres:String = "";
var wiadomosc:String = "";
send_btn.onRelease = function() {
if (imie == "" || telefon == "" || mail == "" || typ == "" || adres == "") {
wiadomosc = "ABY WYSŁAC FORMULARZ NALEŻY WYPEŁNIC WSZYSTKIE POLA";
} else if (mail.indexOf("@") == -1 || mail.indexOf(".") == -1) {
wiadomosc = "E-MAIL JEST NIEPOPRAWNY";
} else {
mail_form.imie = imie;
mail_form.telefon = telefon;
mail_form.mail = mail;
mail_form.typ = typ;
mail_form.adres = adres;
mail_form.wiadomosc = wiadomosc;
mail_form.sendAndLoad("mail_form.php", mail_odp, "POST");
mail_odp.onLoad = function(success:Boolean) {
if (success) {
wiadomosc = this.content;
imie = "";
telefon = "";
mail = "";
typ = "";
adres = "";
} else {
wiadomosc = "WIADOMOSC NIE ZOSTAłA WYSLANA
!";
}
};
}
};
var mail_odp:LoadVars = new LoadVars();
var imie:String = "";
var telefon:String = "";
var typ:String = "";
var adres:String = "";
var wiadomosc:String = "";
send_btn.onRelease = function() {
if (imie == "" || telefon == "" || mail == "" || typ == "" || adres == "") {
wiadomosc = "ABY WYSŁAC FORMULARZ NALEŻY WYPEŁNIC WSZYSTKIE POLA";
} else if (mail.indexOf("@") == -1 || mail.indexOf(".") == -1) {
wiadomosc = "E-MAIL JEST NIEPOPRAWNY";
} else {
mail_form.imie = imie;
mail_form.telefon = telefon;
mail_form.mail = mail;
mail_form.typ = typ;
mail_form.adres = adres;
mail_form.wiadomosc = wiadomosc;
mail_form.sendAndLoad("mail_form.php", mail_odp, "POST");
mail_odp.onLoad = function(success:Boolean) {
if (success) {
wiadomosc = this.content;
imie = "";
telefon = "";
mail = "";
typ = "";
adres = "";
} else {
wiadomosc = "WIADOMOSC NIE ZOSTAłA WYSLANA

}
};
}
};
a na maila dostaję:
Imie:
telefon:
E-mail:
typ:
adres:
Wiadomosc:
co zrobić żeby dostać treść wiadomości? Z góry dzięki...
są to kody na formularz we flashu ze sktyptem php