Problem 1) mam flashową stronkę ( www.photoRHplus.com )z formularzem
(pola formularza nazywają się t11, t12 itd, w którym miejscu powinienem zmienić dane w php?)
<?php { // tworzymy krotkie nazwy zmiennych odbieranych z Flash $imie = $_POST['imie']; $nazwa = $_POST['nazwa']; $email = $_POST['email']; $telefon = $_POST['telefon']; $fax = $_POST['fax']; $email2 = $_POST['email2']; $tresc = $_POST['tresc']; // w zmiennej $to zapisujemy adres gdzie formularz mialby byc wysylny $to = 'office@photorhplus.com'; //przetwarzamy dane formularza i wysylamy na wczesniej definiowany adres mail $body = $imie; $body = $telefon; $body = $fax; $body = $email2; $body = $tresc; $body .= "rn_____________________________________________________rn"; $body .= "Mail wyslany przez : ".nazwa." [".$email."]"; { // zaleznie od tego czy wyslanie maila powiodlo sie wysylamy odpowiednia odpowiedz
do Flash } else { } } ?>
dalej (już we flashu) na przycisku "submit" mam wklepane:
<?php on (release) { formularz.sendAndLoad("formularz.php", formularz, "POST"); } ?>
jak widać na stronie pisze "oczekiwanie na odpowiedź serwera" i wiadomość nie jest wysyłana (mam wykupione konto na webd.pl więc php jest obsługiwane), co może być jeszcze przyczyną

Problem 2) na stronie znajduje się też formularz html (pod adresem http://www.photorhplus.com/formularz/inc/form.html )
i pytanie jak stworzyć do niego skrypt php który będzie pozwalał na wysyłanie przez ten formularz plików
mam coś takiego i nie bardzo radzi sobie z wyłaniem plików i wysyłaniem informacji która odpowiedź była zaznaczona w ankiecie
<? // Names of the HTML header and footer files. $incHeader = $phpMailRoot."inc/header.html"; $incFooter = $phpMailRoot."inc/footer.html"; // Name of the file to include for the HTML form. $incForm = $phpMailRoot."inc/form.html"; // Name of the file to include for the welcome page. $incWelcome = $phpMailRoot."inc/welcome.html"; // Name of the file to include for missing required fields. $incMissing = $phpMailRoot."inc/missing.html"; // Name of the file to include for a bad email address. $incBadEmail = $phpMailRoot."inc/bad_mail.html"; // Name of the file to include for thanking the user. $incThanks = $phpMailRoot."inc/thanks.html"; // Define main variables // Who the mail should go to. Leaving undefined skips send (log/autoreply only) $defTo = "models@photorhplus.com"; // Which values need to be input in form. $defRequired = "imie,nazwisko,email,telefon"; // Should we do a test for a valid from address? // Note: even with this turned off, the script will not // send an autoreply to an invalid address. Also, if from // is not a required field, it will not be checked. $defCheckemail = 1; // The subject the sent mail should have. $defSubject = "Zgloszenie modelki"; $defTemplate = "Tresc Formularza.n Dane modelki:nn" ."Imie: %imie%n Nazwisko: %nazwisko%n email: %email%n wiek: %wiek%n wzrost: %wzrost%n biust talia biodra: %biust% %talia% %biodra%n Adres zamieszkania: %adres%n Telefon: %telefon%n GG: %gg% Skype: %skype%n Dyspozycyjnosc: %portret%n%moda%n%bielizna%n%nagosc zakryta%n%topless%%akt%n Dodatkowe: %info%n Pliki: %file1%n%file2%n%file3%n%file4%n%file5%"; // Who it should appear to be from. Leave commented // out if you don't want to allow empty from lines. // $defFrom = "webuser@here.com"; // Who the autoreply should appear to be from. Leave // commented out if you want to maintain 1.0 compatibility. // If defTo is undefined (i.e. you only want to log the mail) // you can still have an autoreply by defining this variable // and the autoreply variable. $defAutoemail = "%email%"; // The subject the autoreply should have. Comment it // out if you want to maintain 1.0-style autoreply subjects. $defAutosubject = "Thank you for visiting!"; // A prefix to the subject of autoreply messages. If // left undefined, will default to "Auto-Reply: " // Will not be used if "autosubject" is defined // $defAutoprefix = "Re: "; // Any extra headers for the autoreply. Don't forget the n // between them! // $defAutoextras = "Reply-To: realperson@here.comnErrors-To:me@here.comn"; // The body template for the autoreply. // ie. %firstname% is used to print the value of the form element named firstname $defAutoreply = "Hi %imie% %nazwisko%!nn" ." Thank you very much for taking the time to contact me!n" ." Below is a summary of what you sent to me:nn" ."t%firstname% %lastname%nt%email%nt%street%nt%city%nt" ."%province%nt%postal%nt%country%nt%comments%n" ."nnn" ."ttttYours Sincerely,nn" ."tttt Webmaster"; // Ask user for a second submission on completion? // (Only works for "normal" version) $defAskagain = 0; // Text to output when asking for another submission $defAsktext = "<BR>Please send another message if you wish.<BR>"; // Define varibles needed for database access (logging) // Do logging? $defLog = 0; // Log bodies? $defLogbodies = 0; // MySQL hostname $db_hostname = ""; // MySQL username $db_user = ""; // MySQL password $db_password = ""; // MySQL database name $db_database = ""; // MySQL table name $db_table = "maillog"; // Some system values. These shouldn't normally need // to be changed. // Define common library $library = $phpMailRoot."lib/common.lib"; // Define method of finding self_name // Only change this if ACTION="" is showing up in // your forms instead of action="index.php3" // Toggle whether to display some debugging info. // Turn off after testing your configuration. $debug = 0; ?>
Z góry dzięki za odpowiedź
Pozdrawiam