]> git.p6c8.net - form-email.git/commitdiff
Fehlermeldungen bei indiv. Formularfeldern enthalten
authorPatrick Canterino <patrick@patshaping.de>
Sat, 3 Dec 2011 13:12:40 +0000 (13:12 +0000)
committerPatrick Canterino <patrick@patshaping.de>
Sat, 3 Dec 2011 13:12:40 +0000 (13:12 +0000)
nun ausgefuellte Formularfelder

form-email/config.php
form-email/functions.php

index 7ab893c62934f176e84ba39b3cdc76a030c6cbb4..42b60b4a424d743dfdcea41a882fd54829eb09c3 100644 (file)
@@ -130,7 +130,7 @@ $err_captcha_session_failure = 'Keine g
 \r
 $tpl_mail       = 'mail_individual.txt';\r
 $tpl_sent       = 'sent.htm';\r
 \r
 $tpl_mail       = 'mail_individual.txt';\r
 $tpl_sent       = 'sent.htm';\r
-$tpl_user_error = 'user_error.htm';\r
+$tpl_user_error = 'user_error_individual.htm';\r
 $tpl_fatal      = 'fatal.htm';\r
 \r
 #\r
 $tpl_fatal      = 'fatal.htm';\r
 \r
 #\r
index e353da8f6556f967f2c694db9126a7578ac95504..eb7f92068f5fa2a271d1c0537e2327ffcc69eb03 100644 (file)
@@ -123,7 +123,7 @@ function show_fatal(&$errmsg) {
 # Parameter: Fehlermeldung\r
 \r
 function show_user_error(&$errmsg) {\r
 # Parameter: Fehlermeldung\r
 \r
 function show_user_error(&$errmsg) {\r
-    global $captcha_enable, $email, $name, $subject, $text, $tpl_user_error;\r
+    global $captcha_enable, $email, $name, $subject, $text, $user_fields, $tpl_user_error;\r
 \r
     $tpl = new Template;\r
     $tpl->read_file($tpl_user_error);\r
 \r
     $tpl = new Template;\r
     $tpl->read_file($tpl_user_error);\r
@@ -136,6 +136,12 @@ function show_user_error(&$errmsg) {
     $tpl->set_var('SUBJECT',htmlentities($subject));\r
     $tpl->set_var('TEXT',   htmlentities($text));\r
 \r
     $tpl->set_var('SUBJECT',htmlentities($subject));\r
     $tpl->set_var('TEXT',   htmlentities($text));\r
 \r
+    reset($user_fields);\r
+\r
+    while(list($user_field,$user_field_data) = each($user_fields)) {\r
+        $tpl->set_var($user_field_data['tpl_var'],htmlentities(formdata($user_field)));\r
+    }\r
+\r
     $tpl->parse();\r
 \r
     print $tpl->get_template();\r
     $tpl->parse();\r
 \r
     print $tpl->get_template();\r

patrick-canterino.de