{lang: 'de'}
Flashhilfe.de - Flash Community

Problem mit Kontakt Formular [Flash CS4]

 


AntwortenRegistrieren Seite1  

Joekiko#1
Benutzerbild von Joekiko
Beiträge: 2
Registriert: Feb 2010

18.02.2010, 13:04

Hallo,
Ich bin Neu in Sachen Flash und Php un hab mir ein Template von Monster Templates besorgt. Nun happert's aber an der Anpassung.
Die Seite an sich hab ich schon angepasst nur will das Kontaktformular nicht funktionieren.
Das Kontaktfomular is in Php und ich weis ehrlich gesagt nicht wirklich ob ich alles richtig angepasst hab oder ob ich was vergessen hab. Weil er die Nachrricht aus dem Kontaktformular nicht bearbeiten kann.

Hier mal die Codes:
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
//-----------------Getting data sent by flash---------------------
foreach ($_POST as $key => $value){

        if (
$key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
   
           
$mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
   
           
$mail_body .= ''.stripslashes($value).'<br/>';
        }
}
//-----------------------------------------------------------------



$message '<html><body>'.$mail_body.'</body></html>'//  mail body

//------------if plain text is set to true removing html tags------
if ($_POST['plain_text']=='true') {

   
$message str_replace('<br/>',"rn"$message);

   
$message strip_tags($message);

//------------------------------------------------------------------
} else {
//----otherwise composing message headers---------------------------
   
$headers  'MIME-Version: 1.0' "rn";
   
   
$headers .= 'Content-type: text/html; charset=iso-8859-1' "rn";
//------------------------------------------------------------------
}

//------------setting conf data-------------------------------------
$to $_POST['Kundendienst@smag-junior.de'];

$from $_POST['Site visitor'];

$subject $_POST['Nachricht von Homepage'];

$smtp_server $_POST['smtp.1blu.de'];

$smtp_port $_POST['25'];
//------------------------------------------------------------------

//---------setting header info--------------------------------------
$headers .= 'To: '.$to"rn";

$headers .= 'From: Site visitor ' .$from"rn";
//------------------------------------------------------------------


if (mail($to$subject$message$headers)){ // sending mail

   
print('&mail=1');  //succes

} else {

    print(
'&mail=0');//failure

}

?>



ActionScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="utf-8"?>
<!--
       Please read this information to learn how to set up the contact form integrated
       into the template.
       
       This readme file explains in details the meaning of the settings that can be
       done in the fcContactFormConfiguration.xml configuration file.
       
       It is recommended for you to use an XML editor to make changes to this file
       because it’s less possible to make an error in the markup which can cause to
       a not working contact form.
  -->
<contactFormConfiguration>
       
   <!--
          An e-mail address which will be used to receive messages from your contact form.
          You can specify several e-mail addresses separating them with a comma.
          For example: first_email@domain.com, second_email@domain.com, third@domain.com
     -->
   <emailTo>Kundendienst@smag-junior.de</emailTo>
   
   <!--
          A server script type which will process sending e-mails. It depends on your
          hosting and in the current version of the contact form it is allowed to use
          two types:  php (Apache, PHP Hosting); asp (IIS web server, ASP).
     -->
   <serverProcessorType>php</serverProcessorType>
   
   <!--
          A name of the script file which process sending e-mails on your server (without
          extension). The name contact is used by default.
     -->
   <serverProcessorFileName>contact</serverProcessorFileName>
   
   <!--
          Set whether to validate only required fields (true/false).  The default value is
          true which means the not required fields of your contact form will not be validated.
          For example if the e-mail field of your form is set as not required (imagine it)
          the form will be processed even if the user types in an incorrect e-mail address.
     -->
   <validateRequiredOnly>false</validateRequiredOnly>
   
   <!--
          Set whether to submit the form when the Enter key is pressed even if the focus is
          not on the Submit button (true/false).
     -->
   <submitFormOnEnter>false</submitFormOnEnter>
   
   <!--
          Text showing to the user when the form is submitted without any errors.
     -->
   <messageSentText>Vielen Dank für Ihre Nachricht.</messageSentText>
   
   <!--
          Text showing in case the form is not submitted because of a server error.
     -->
   <messageSentFailedText>Error: Bearbeitung nicht möglich</messageSentFailedText>
   
   <!--
          Text your visitor will see while waiting till the processing is over.
     -->
   <formProcessingText>Bitte Warten...</formProcessingText>
   
   <!--
          Your SMTP server (for ASP only).
     -->
   <smtpServer>localhost</smtpServer>
   
   <!--
          Your SMTP port (for ASP only).
     -->
   <smtpPort>25</smtpPort>
   
   <!--
          Set whether to send the message as a plain text (true) or as HTML (false).
     -->
   <plainText>true</plainText>
   
   <!--
          ID of the input field (in the structure XML file) to use for the “from: ”
          or email to use instead (for example: mailfrom@domainname.com).
     -->
   <emailFromSource>2</emailFromSource>
   
   <!--
          Subject of the e-mails that will be sent through this contact form or ID of
          the input field (in the structure XML file) to use for the “subject: ” label
          in your e-mail client.
     -->
   <subjectSource>Nachricht von SMAG Homepage</subjectSource>
   
   <!--
          Validation error messages that are showing to the user when the form fails to
          validate. The form supports different types of validators. You can change the
          text of the error messages the validators produce here.
      
          You can use the {LABEL} keyword in these messages. It will replace it with the
          label value of the field where an error occurs.
     -->
   <validationErrorMessages>
         
      <!--
             A required field is not filled in.
        -->
      <message type="fieldIsRequired">{1} wird benötigt.</message>
      
      <!--   
             The specified e-mail address is incorrect.
        -->
      <message type="emailNotValid">{2} - E-mail Adresse nicht korrekt.</message>
      
      <!--
             The specified number of characters in a field is less than a required minimum.
        -->
      <message type="minCharsLimitError">{3} - Die NAchricht ist zu kurz.</message>
      
      <!--
             The specified string does not match with the regular expression.
        -->
      <message type="reqExpError">{LABEL} - The specified string does not match with the regular expression.</message>
      
      <!--
             The specified number is greater than an acceptable biggest number for this field.
        -->
      <message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable biggest number for this field.</message>
      
      <!--
             The specified number is lower than an acceptable lowest number for this field.
        -->
      <message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable lowest number for this field.</message>
      
      <!--
             The data is not a number.
        -->
      <message type="notANumberError">{LABEL} - The data is not a number.</message>
      
      <!--
             The specified number must not be negative.
        -->
      <message type="negativeError">{LABEL} - The specified number must not be negative.</message>
      
      <!--
             The minimum number of variants is not selected
        -->
      <message type="minRequirementError">{LABEL} - The minimum number of variants is not selected</message>
      
      <!--
             The number of variants selected exceeds the maximum
        -->
      <message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the maximum</message>
      
      <!--
             The fields that should be equal do not match
        -->
      <message type="shouldBeEqualError">{LABEL} - values do not match</message>

      <!--
             The date has wrong format.
        -->
      <message type="dateIsNotValidError">{LABEL} - date has wrong format</message>

   </validationErrorMessages>
   
</contactFormConfiguration>
Joekiko#2
Benutzerbild von Joekiko
Beiträge: 2
Registriert: Feb 2010

Themenautor/in

20.02.2010, 18:52

Hat niemand ne idee um mir zu helfen ?
AdamM#3
Benutzerbild von AdamM
Beiträge: 2
Wohnort: Kaiserslautern
Registriert: Mar 2010

09.03.2010, 22:09

Ich habe das gleiche Problem. So wie es aussieht, wird die contact.php nicht angesprochen. Ich habe den Support von TM angeschrieben, wenn ich eine Antwort erhalten habe, werde ich sie hier einstellen.
Gruß Adam
Supervreni#4
Benutzerbild von Supervreni
Beiträge: 2
Registriert: Mar 2010

18.03.2010, 16:39

Gibts denn schon eine Antowrt?
Ich hab nämlich das gleiche Problem! Mir kommts auch so vor als würd die contact.php gar nicht angesprochen werden!
AdamM#5
Benutzerbild von AdamM
Beiträge: 2
Wohnort: Kaiserslautern
Registriert: Mar 2010

19.03.2010, 09:36

Der Support von TM ist ja ein echter knaller. Als Antwort kam eine Anweisung, dass man alle Dateien auf den Server hochladen und in die formconfiguration die entsprechende
Emailadresse eintragen muss. Auf meine Nachfrage, ob die es ernst meinen, habe ich bis heute keine Antwort.
Komischerweise weise hat sich Problem bei mir von selbst erledigt, ich hab nichts gemacht. Da es jetzt normal funktioniert, habe ich mich mit dem Thema nicht weiter beschäftigt...
Supervreni#6
Benutzerbild von Supervreni
Beiträge: 2
Registriert: Mar 2010

19.03.2010, 09:51

Kannst du mir vielleicht mal deine beiden Dateien schicken damit ich das abgleichen kann? Oder passt die von dem Vorredner schon so wie er es gemacht hat?

AntwortenRegistrieren Seite1  

Schnellantwort

Du musst registriert sein, um diese Funktion nutzen zu können.

 
Ähnliche Beiträge zum Thema
Partner Webseiten: art-and-law.de  Mediengestalter.info   phpwelt.de   Scubacube.de  
Haftungsausschluss   Datenschutzerklärung   Impressum
© 1999-2024 Sebastian Wichmann - Flashhilfe.de