| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Jul 2010
Beiträge: 1
|
hallo, versuche gerade ein kontakt formular zu erstellen, was mit 3 eingabefeldern auch gut geklappt hat. nun habe ich das formular um weitere felder erweitert und komme leider nicht auf den fehler drauf... bin über jeden hinweis sehr dankbar! hier mal mein AS script: stop(); System.useCodepage = true; send_btn.onRelease = function() { my_vars = new LoadVars(); my_vars.sender = email_box.text; my_vars.subject = subject_box.text; my_vars.message = message_box.text; my_vars.adresse = adresse_box.text; my_vars.plz = plz_box.text; my_vars.telefon = telefon_box.text; if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") { my_vars.sendAndLoad("mailer.php", my_vars, "POST"); gotoAndStop(2); } else { error_clip.gotoAndPlay(2); } my_vars.onLoad = function() { gotoAndStop(3); }; }; email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=func tion () { if (error_clip._currentframe != 1) { error_clip.gotoAndPlay(6); } }; UND HIER DAS PHP-FILE: <?php // read the variables form the string, (this is not needed with some servers). $subject = $_POST["subject"]; $message = $_POST["message"]; $sender = $_POST["sender"]; $adresse = $_POST["adresse"]; $plz = $_POST["plz"]; $telefon = $_POST["telefon"]; $email = $_POST["email"]; // include sender IP in the message. // $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message; // $message= $full_message; // remove the backslashes that normally appears when entering " or ' $message = stripslashes($message); $subject = stripslashes($subject); $sender = stripslashes($sender); $adresse = stripslashes($adresse); $plz = stripslashes($plz); $telefon = stripslashes($telefon); $email = stripslashes($email); // add a prefix in the subject line so that you know the email was sent by online form $subject = "Anfrage von ". $subject; // send the email, make sure you replace email@yourserver.com with your email address if(isset($message) and isset($subject) and isset($sender)){ mail("test@meinewebsite.com", $subject, $message, $adresse, $plz, $telefon, $email, "From: $sender"); } ?> |
| | |
![]() |
| Lesezeichen |
| Stichworte |
| flash, kontakt forumular, php |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Kontakt-Formular | Ich bin Melany | Flash Einsteiger | 2 | 21-08-2008 23:29 |
| Kontakt?! | askraba | Flash Einsteiger | 1 | 07-03-2006 12:16 |
| Kontakt | Scheidlf | Flash Einsteiger | 5 | 21-01-2006 16:01 |
| Kontakt Formular | DonJuan | Flash und Datenbanken | 7 | 25-03-2003 06:11 |
| Furmular Felder | DieManDie | HTML und CSS | 3 | 26-07-2001 13:04 |