Kod php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>E-mail</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Language" content="pl"> </head> <body> <?php $adminaddress = "fistach5@poczta.onet.pl"; $siteaddress ="http://www.mojastrona.pl"; $sitename = "Moja strona"; $header = "MIME-Version: 1.0n"; $header .= "From: $adminaddressn"; $header .= "Content-Type: TEXT/plain; CHARSET=utf-8n"; // Gets the POST Headers - the Flash variables $action = $HTTP_POST_VARS['action'] ; $email = $HTTP_POST_VARS['email'] ; $lname = $HTTP_POST_VARS['lname'] ; $name = $HTTP_POST_VARS['name'] ; $city = $HTTP_POST_VARS['city'] ; $telno = $HTTP_POST_VARS['telno'] ; $comments = $HTTP_POST_VARS['comments'] ; $firma = $HTTP_POST_VARS['firma'] ; //Process the form data! // and send the information collected in the Flash form to Your nominated email ad
dress if ($action == "send") { // "Wiadomoݦ nadesԡna z $sitenamen Imi꺠$name Nazwisko : $lname Nazwa Firmy: $firma Email: $email Telefon: $telno Miasto: $cityn Tekst: ------------------------------ $comments ------------------------------ Date/Time: $date","FROM:$adminaddress" ) ; //This sends a confirmation to your visitor "Witam $name,n Dzi묵jemy za wizyte na stronie $sitename Odpiszemy w najbliższym czasie. n Z poważaniem $sitename $siteaddress","FROM:$adminaddress") ; //Confirmation is sent back to the Flash form that the process is complete $sendresult = "Zapytanie wyslane. Odpowiemy w najblizszym czasie."; $send_answer = "answer="; } // ?> </body> </html>
Bede wdzieczny za poprawienie tego pliku.
Jeśli chcecie potrenowac TU mozna pobrac caly formularz.