Mailformplus: Felder nach Prüfung leer

  • tld_luke tld_luke
    T3PO
    0 x
    19 Beiträge
    0 Hilfreiche Beiträge
    11. 11. 2010, 11:44

    Hallo,

    ich habe folgendes Problem:

    Wenn ich in meinem Mailformplus Formular ein Feld nicht ausfülle, wird ja die Prüfung angewandt. Dabei werden aber alle bestehenden Felder im Formular gelöscht.

    Wie ich in diversen anderen Threads entdeckt habe, liegt das wohl am value (###value_loesung###).

    Obwohl ich mein Formular nach diesem schema aufgebaut habe, werden die Felder bei der Prüfung gelöscht.

    Hier mein Mail Code:

    1. <!-- ###TEMPLATE_FORM### begin -->
    2.  
    3. ###ERROR###
    4.  
    5. <form name="Formular" method="post" action="###REL_URL###" enctype="multipart/form-data">
    6.  
    7. <input type="hidden" name="id" value="###PID###" />
    8.  
    9. <input type="hidden" name="submitted" value="1" />
    10.  
    11. <input type="hidden" name="L" value="###value_L###" />
    12.  
    13. <input type="hidden" name="type" value="###value_type###" />
    14.  
    15. <table border="0" cellpadding="0" cellspacing="5" width="580">
    16.  
    17. <tr>
    18.  
    19. <td valign="middle">Ihr Name/Vorname*</td>
    20.  
    21. <td valign="middle" align="right"><input type="text" name="Name" value="###value_name###" tabindex="1" style="border:1px solid #CCCCCC; width:350px;" /></td>
    22.  
    23. </tr>
    24.  
    25. <tr>
    26.  
    27. <td valign="middle">Strasse, HNr*</td>
    28.  
    29. <td valign="middle" align="right"><input type="text" name="Strasse" value="###value_strasse###" tabindex="2" style="border:1px solid #CCCCCC; width:350px;" /></td>
    30.  
    31. </tr>
    32.  
    33. <tr>
    34.  
    35. <td valign="middle">PLZ/Wohnort*</td>
    36.  
    37. <td valign="middle" align="right"><input type="text" name="Ort" value="###value_ort###" tabindex="3" style="border:1px solid #CCCCCC; width:350px;" /></td>
    38.  
    39. </tr>
    40.  
    41. <tr>
    42.  
    43. <td valign="middle">Telefon*</td>
    44.  
    45. <td valign="middle" align="right"><input type="text" name="Telefon" value="###value_telefon###" tabindex="4" style="border:1px solid #CCCCCC; width:350px;" /></td>
    46.  
    47. </tr>
    48.  
    49. <tr>
    50.  
    51. <td valign="middle">E-Mail-Adresse*</td>
    52.  
    53. <td valign="middle" align="right"><input type="text" name="email" value="###value_email###" tabindex="5" style="border:1px solid #CCCCCC; width:350px;" /></td>
    54.  
    55. </tr>
    56.  
    57. <tr>
    58.  
    59. <td colspan="2" valign="middle"><hr /></td>
    60.  
    61. </tr>
    62.  
    63. <tr>
    64.  
    65. <td colspan="2" valign="top"><strong>Ihre Lösung für das aktuelle Gewinnspiel*</strong></td>
    66.  
    67. </tr>
    68.  
    69. <tr>
    70.  
    71. <td colspan="2" valign="middle" align="right">
    72.  
    73. <!-- <input type="textarea" name="Loesung" value="###value_loesung###" tabindex="6" style="border:1px solid #CCCCCC; height:100px; width:575px;" /> -->
    74. <textarea name="Loesung" id="Loesung" tabindex="6" style="border:1px solid #CCCCCC; height:100px; width:575px;" rows="2" cols="20">###value_loesung###</textarea>
    75. <!-- <textarea cols=200 rows=10 name="Loesung" id="Loesung" value="###value_loesung###" class="txt_input" style="width:470px"></textarea> -->
    76.  
    77. </td>
    78.  
    79. </tr>
    80.  
    81. <tr>
    82.  
    83. <td colspan="2" valign="middle"><hr /></td>
    84.  
    85. </tr>
    86.  
    87. <tr>
    88.  
    89. <td colspan="2" valign="middle" align="right"><input type="submit" value="Lösung senden" tabindex="7" /></td>
    90.  
    91. </tr>
    92.  
    93. </table>
    94.  
    95. </form>
    96.  
    97. <!-- ###TEMPLATE_FORM### end -->
    98.  
    99.  
    100.  
    101.  
    102.  
    103.  
    104.  
    105. <!-- ###TEMPLATE_PRINT### begin -->
    106.  
    107. You just filled out the following fields:<br/>
    108.  
    109. Name: ###name###<br/>
    110.  
    111. Subject: ###subject###<br/>
    112.  
    113. <br/>
    114.  
    115. you uploaded the following files:<br/>
    116.  
    117. ###photo###
    118.  
    119. <br/>
    120.  
    121. ###cv###
    122.  
    123. <br/>
    124.  
    125. <!-- ###TEMPLATE_PRINT### end -->
    126.  
    127.  
    128.  
    129.  
    130.  
    131.  
    132.  
    133. <!-- ###TEMPLATE_SUBMITTED_OK### begin -->
    134.  
    135. <b>Vielen Dank für Ihre Nachricht.</b>
    136.  
    137.  
    138.  
    139. <hr>
    140.  
    141. <br/>
    142.  
    143. <!-- ###TEMPLATE_SUBMITTED_OK### end -->
    144.  
    145.  
    146.  
    147.  
    148.  
    149.  
    150.  
    151. <!-- ###TEMPLATE_EMAIL_USER### begin -->
    152.  
    153. Hello ###name### (plain),
    154.  
    155. You have just filled out the form and asked about:
    156.  
    157. ###subject###
    158.  
    159.  
    160.  
    161. you uploaded the following files:
    162.  
    163. ###photo###
    164.  
    165.  
    166.  
    167. ###cv###
    168.  
    169. We will contact you as soon as possible,
    170.  
    171. ciao!
    172.  
    173. <!-- ###TEMPLATE_EMAIL_USER### end -->
    174.  
    175.  
    176.  
    177.  
    178.  
    179.  
    180.  
    181. <!-- ###TEMPLATE_EMAIL_USER_HTML### begin -->
    182.  
    183. Hello ###name### (html),<br/>
    184.  
    185. You have just filled out the form and asked about:<br/>
    186.  
    187. ###subject###<br/>
    188.  
    189. <br/>
    190.  
    191. you uploaded the following files:<br/>
    192.  
    193. ###photo###<br/>
    194.  
    195. <br/>
    196.  
    197. ###cv###
    198.  
    199. <br/>
    200.  
    201. We will contact you as soon as possible,<br/>
    202.  
    203. ciao!
    204.  
    205. <!-- ###TEMPLATE_EMAIL_USER_HTML### end -->
    206.  
    207.  
    208.  
    209.  
    210.  
    211.  
    212.  
    213. <!-- ###TEMPLATE_EMAIL_RECEIVER### begin -->
    214.  
    215. Hello admin (plain),
    216.  
    217. A user just filled out the form:
    218.  
    219. name: ###name###
    220.  
    221. subject: ###subject###
    222.  
    223.  
    224.  
    225. uploaded files:
    226.  
    227. ###photo###
    228.  
    229.  
    230.  
    231. ###cv###
    232.  
    233.  
    234.  
    235. please contact the user: ###email###
    236.  
    237. <!-- ###TEMPLATE_EMAIL_RECEIVER### end -->
    238.  
    239.  
    240.  
    241.  
    242.  
    243.  
    244.  
    245. <!-- ###TEMPLATE_EMAIL_RECEIVER_HTML### begin -->
    246.  
    247. <table border="0" cellpadding="0" cellspacing="5" width="580">
    248.  
    249. <tr>
    250.  
    251. <td valign="middle">Name/Vorname</td>
    252.  
    253. <td valign="middle">###Name###</td>
    254.  
    255. </tr>
    256.  
    257. <tr>
    258.  
    259. <td valign="middle">Strasse, HNr</td>
    260.  
    261. <td valign="middle">###Strasse###</td>
    262.  
    263. </tr>
    264.  
    265. <tr>
    266.  
    267. <td valign="middle">PLZ/Wohnort</td>
    268.  
    269. <td valign="middle">###Ort###</td>
    270.  
    271. </tr>
    272.  
    273. <tr>
    274.  
    275. <td valign="middle">Telefon</td>
    276.  
    277. <td valign="middle">###Telefon###</td>
    278.  
    279. </tr>
    280.  
    281. <tr>
    282.  
    283. <td valign="middle">E-Mail-Adresse</td>
    284.  
    285. <td valign="middle">###email###</td>
    286.  
    287. </tr>
    288.  
    289. <tr>
    290.  
    291. <td colspan="2" valign="top">Frage(n):</td>
    292.  
    293. </tr>
    294.  
    295. <tr>
    296.  
    297. <td colspan="2" valign="middle">###Loesung###</td>
    298.  
    299. </tr>
    300.  
    301. </table>
    302.  
    303. <!-- ###TEMPLATE_EMAIL_RECEIVER_HTML### end -->
    304.  
    305.  
    306.  
    307.  
    308.  
    309.  
    310.  
    311.  
    312.  
    313. <!-- ###TEMPLATE_ERROR### begin -->
    314.  
    315.  
    316.  
    317. <!-- ###ERROR_START### begin -->
    318.  
    319. <p>Bitte befüllen SIe folgende Felder:
    320.  
    321. <ul>
    322.  
    323. <!-- ###ERROR_START### end -->
    324.  
    325.  
    326.  
    327. <!-- ###ERROR_END### begin -->
    328.  
    329. </ul>
    330.  
    331. </p>
    332.  
    333. <!-- ###ERROR_END### end -->
    334.  
    335.  
    336.  
    337.  
    338.  
    339.  
    340.  
    341. <!-- ###ERROR_FILESIZE### begin
    342.  
    343. this is used if you use the file upload functionality -->
    344.  
    345. <li>File is too large!</li>
    346.  
    347. <!-- ###ERROR_FILESIZE### end -->
    348.  
    349.  
    350.  
    351.  
    352.  
    353.  
    354.  
    355. <!-- ###ERROR_FILETYPE### begin
    356.  
    357. this is used if you use the file upload functionality -->
    358.  
    359. <li>File is not allowed!</li>
    360.  
    361. <!-- ###ERROR_FILETYPE### end -->
    362.  
    363.  
    364.  
    365.  
    366.  
    367.  
    368.  
    369.  
    370.  
    371. <!-- ###ERROR_name### begin -->
    372.  
    373. <li>insert Title</li>
    374.  
    375. <!-- ###ERROR_name### end -->
    376.  
    377.  
    378.  
    379.  
    380.  
    381. <!-- ###TEMPLATE_ERROR### end -->

    kann mir jemand helfen?

    bin total verzweifelt.
    DANKE


  • 1
  • mort mort
    Padawan
    0 x
    36 Beiträge
    0 Hilfreiche Beiträge
    18. 01. 2011, 14:45

    Hi luke,

    case-sensitive ;)

    Benenne einfach die name-Attribute deiner inputs alle mit Kleinbuchstaben, dann läuft's.
    Ich habe grade testweise eins meiner inputs "Vorname" statt "vorname" gennant, und promt bleibt das Feld leer.

    Gruß,
    mort`

  • 1