[TYPO3] Tmailform - Problems using checkbox-values

Bernhard typo3-list-en at spencer.at
Fri Mar 3 19:31:24 CET 2006


Tonni Aagesen wrote:
> Bernhard wrote:
>> Hi!
>>
>> I'm using the extension TMailform for my mail-forms, sending the mails 
>> in plain-text. Everything seems to work fine, just one single checkbox 
>> is not working as it should.
>> This is the (imho) relevant part of my template:
>>
>> <!-- ###TMAIL_FORM### begin -->
>> ...
>> <input type="checkbox"
>> name="tx_pilmailform_pi1[checkbox][einverstanden]" value="yes"
>> ###EINVERSTANDEN_YES_VAL### />
>> ...
>> <!-- ###TMAIL_FORM### end -->
>>
>> <!-- ###TMAIL_MAIL### begin -->
>> ...
>> # Einverstaendnis:      ###EINVERSTANDEN_YES_VAL###
>> ...
>> <!-- ###TMAIL_MAIL### end -->
> 
> Try this:
> 
> <!-- ###TMAIL_MAIL### begin -->
> ...
> # Einverstaendnis:      ###EINVERSTANDEN_VAL###
> ...
> <!-- ###TMAIL_MAIL### end -->

This is actually working! I really appreciate your help - you wouldn't 
believe how much headache you saved me.

> The marker "###EINVERSTANDEN_YES_VAL###" tells TMailform if the checkbox 
> was checked , should the form be shown again (due to some input error ect.).

Again - thank you for your quick and helpful response.

Best regards,
Bernhard



More information about the TYPO3-english mailing list