]> git.p6c8.net - form-email.git/blobdiff - form-email/functions.php
Fehlermeldungen bei indiv. Formularfeldern enthalten
[form-email.git] / form-email / functions.php
index e353da8f6556f967f2c694db9126a7578ac95504..eb7f92068f5fa2a271d1c0537e2327ffcc69eb03 100644 (file)
@@ -123,7 +123,7 @@ function show_fatal(&$errmsg) {
 # 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
@@ -136,6 +136,12 @@ function show_user_error(&$errmsg) {
     $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

patrick-canterino.de