X-Git-Url: https://git.p6c8.net/form-email.git/blobdiff_plain/b35242cfdec82aed47f23ac4051ccd53e958f13a..486e87a00a9d88a8001077f3f8bb06aa602551c5:/form-email/mailer.php?ds=inline diff --git a/form-email/mailer.php b/form-email/mailer.php index ff43112..3adbaad 100644 --- a/form-email/mailer.php +++ b/form-email/mailer.php @@ -170,9 +170,18 @@ while(list($user_field,$user_field_data) = each($user_fields)) { } } + # Name der Template-Variable ermitteln + + if(isset($user_field_data['tpl_var']) && $user_field_data['tpl_var'] != '') { + $tpl_var = $user_field_data['tpl_var']; + } + else { + $tpl_var = 'USER_'.$user_field; + } + # Fertige Formulardaten wegkopieren und fuer spaeter zur Verfuegung stellen - $prepared_user_fields[$user_field_data['tpl_var']] = $user_field_content; + $prepared_user_fields[$tpl_var] = $user_field_content; } # Captcha ueberpruefen