[Typo3] [mailformplus] Multiple checkboxes
Al Heikkila
kalanh at shaw.ca
Mon Jul 25 22:34:11 CEST 2005
Hi Farhdine,
A checkboxwill only ever return on or off (or array, apparently), "value" is
not a valid attribe. If your want your email notification to display the
actual value, a radio button will yield the result you want (assuming you
want users to select only one date).
If you must use check boxes, maybe you can have a hidden field that returns
your desired results. I suggest:
<input type="checkbox" name="dateA1">Website Design
<input type="hidden" name="dateA" value="<?php if($DateA1 == "on"){echo "Jan
30";}?>">
###error_webdesign###
<br />
Although it's untested! Give it a try.
Alan Heikkila
> Farhdine Boutzakhti wrote:
>
>
>> Hi,
>> I got a problem with multiple checkboxes,
>> the mailer is only sending the last value of my
>> chosen checkboxes, others are ignored.
>> It's the same in the backend, the last value is display.
>>
>> <input type="checkbox" name="date" value="A" ###checked_date_A###
>> border="0">
>> <input type="checkbox" name="date" value="B" ###checked_date_B###
>> border="0">
>> <input type="checkbox" name="date" value="C" ###checked_date_C###
>> border="0">
>>
>> can anyone help me?
>>
>
> name="date[]"
>In the template, how can I get the results ? date[0] ?
>With ###date###, it display 'Array' !
>sorry, if it is a stupid question but I'm a newbee :p
More information about the TYPO3-english
mailing list