• beyond tellerrand – play. Register Now!
Zurück   Flashforum > Flash > Flash Einsteiger

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 12-07-2010, 16:04   #1 (permalink)
Neuer User
 
Registriert seit: Jul 2010
Beiträge: 1
Question Kontakt Furmular mittels php

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");
}
?>
mm70 ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
flash, kontakt forumular, php

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ä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


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:22 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele