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 |
enctype = multipart/form-data method = post prefix = tx_form confirmation = 0 postProcessor { 1 = mail 1 { recipientEmail = admin@example.com senderEmailField = E-Mail senderNameField = Name subject = Kontaktanfrage von Website messages{ success = <div class="success">Ihre Anfrage wurde erfolgreich versandt.</div> } } } 10 = TEXTLINE 10 { name = Name label { value = Ihr Name } } 20 = TEXTLINE 20 { name = E-Mail label { value = E-Mail } } 30 = TEXTAREA 30 { cols = 40 rows = 5 name = Nachricht label { value = Ihre Nachricht } } 40 = SUBMIT 40 { name = 5 value = Absenden } rules { 1 = required 1 { breakOnError = 0 showMessage = 1 message = * error = Bitte geben Sie Ihren Namen an element = Name } 2 = email 2 { breakOnError = 0 showMessage = 1 message = * error = Bitte geben Sie eine gültige E-Mail an element = E-Mail } 3 = required 3 { breakOnError = 0 showMessage = 1 message = * error = Bitte geben Sie ihre Nachricht ein element = Nachricht } } |
1 2 3 4 5 6 7 |
Name: | *name = input | E-Mail: | *email=input | | EMAIL Nachricht: | nachricht=textarea | |formtype_mail = submit | Absenden |html_enabled=hidden | 1 |subject=hidden| Nachricht vom Kontaktformular |
1 2 3 4 5 |
# constants styles.content.mailform.badMess = Bitte die folgenden Felder ausfüllen: # setup tt_content .mailform.20.emailMess = Bitte eine gültige E-Mail-Adresse eingeben |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
label { display:block; } .csc-mailform-field { margin-bottom:1em; } input[type=text], textarea { width:50%; border:1px solid #ddd; padding:5px; font-family:Arial, sans-serif; } input[type=text]:focus, textarea:focus { border:1px solid #aaa; background-color:#efefef; } |