Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Paul] Global for ENUM-field (checkboxes)

Quote Reply
Re: [Paul] Global for ENUM-field (checkboxes) In reply to
For the following it doesn´t make a difference - but I thank Paul for the lesson. In other cases it might be useful!!!

The boxes show up properly but I get an error when submitting the entry:

• kind kann nicht den Wert 'on on' speichern.

in english:
• kind cannot get the value 'on on'


Any idea what is wrong in the following code?

sub {
my $tags = GT::Template->tags;
my $e;
my %values = (
Produzent => '  Produzent:',
Handel => '  Handel:',
sonstige => '  sonstige:'
);
my $l = $tags->{kind} || '';
foreach my $k ( sort { lc($a) cmp lc($b) }keys %values ) {
my $is_selected = $l eq $k ?
qq|$values{$k} <input type=checkbox name="kind" value="$k" checked>| :
qq|$values{$k} <input type=checkbox name="kind">|;
qq|$values{$k} <input type=checkbox name="kind">|;
$e .= $is_selected;
}
return $e;
}



Lars
Subject Author Views Date
Thread Global for ENUM-field (checkboxes) calliope 9055 May 6, 2003, 6:59 AM
Thread Re: [calliope] Global for ENUM-field (checkboxes)
webmaster33 8846 May 7, 2003, 6:30 AM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Paul 8811 May 7, 2003, 7:06 AM
Thread Re: [Paul] Global for ENUM-field (checkboxes)
webmaster33 8785 May 7, 2003, 7:13 AM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Paul 8790 May 7, 2003, 7:57 AM
Thread Re: [Paul] Global for ENUM-field (checkboxes)
webmaster33 8822 May 7, 2003, 8:05 AM
Post Post deleted by calliope
calliope 8735 May 7, 2003, 8:28 AM
Post Re: [webmaster33] Global for ENUM-field (checkboxes)
calliope 8793 May 7, 2003, 8:34 AM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Paul 8810 May 7, 2003, 8:36 AM
Thread Re: [Paul] Global for ENUM-field (checkboxes)
calliope 8800 May 7, 2003, 9:59 AM
Thread Re: [calliope] Global for ENUM-field (checkboxes)
webmaster33 8740 May 7, 2003, 2:07 PM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Aki 8778 May 8, 2003, 11:21 AM
Thread Re: [Aki] Global for ENUM-field (checkboxes)
webmaster33 8774 May 8, 2003, 3:02 PM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
calliope 8699 May 8, 2003, 11:39 PM
Thread Re: [calliope] Global for ENUM-field (checkboxes)
jaltuve 8738 May 9, 2003, 10:38 AM
Thread Re: [jaltuve] Global for ENUM-field (checkboxes)
cwschroeder 8426 Jan 7, 2008, 5:30 AM
Post Re: [cwschroeder] Global for ENUM-field (checkboxes)
Andy 8445 Jan 7, 2008, 6:44 AM
Post Re: [Aki] Global for ENUM-field (checkboxes)
jaltuve 8676 May 9, 2003, 10:46 AM
Post Re: [calliope] Global for ENUM-field (checkboxes)
Paul 8718 May 7, 2003, 3:02 PM