Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [hennagaijin] Retrieving data from checkboxes

Quote Reply
Re: [hennagaijin] Retrieving data from checkboxes In reply to
Thanks. To be precise, I want to verify in a template what choices have been made in a checkbox field of a record. For example, the field/column 'Pictures' has seven possibilities, 1 to 7.
ie. <%if checkboxes 'includes' (?) #5%>... <%endif%>
This is what I had written as a global (excuse the rustic approach.)

sub {
my $tags = shift;
my $sep = chr(35);
$tags->{Pictures} =~ s/$sep/ /g;
return $tags->{Pictures};
}

but when I include <%checkboxes%> in my template I only obtain the first, lowest numbered, check box number, not ALL of those that have been chosen.
Thanks for your help
Subject Author Views Date
Thread Retrieving data from checkboxes charly 5140 Apr 15, 2003, 1:50 PM
Thread Re: [charly] Retrieving data from checkboxes
hennagaijin 4997 Apr 15, 2003, 8:41 PM
Thread Re: [hennagaijin] Retrieving data from checkboxes
charly 4978 Apr 15, 2003, 10:04 PM
Post Re: [charly] Retrieving data from checkboxes
hennagaijin 5005 Apr 16, 2003, 7:15 AM
Thread Re: [charly] Retrieving data from checkboxes
604 4946 Apr 16, 2003, 11:01 AM
Thread Re: [TheStone] Retrieving data from checkboxes
charly 4921 Apr 16, 2003, 12:05 PM
Thread Re: [charly] Retrieving data from checkboxes
604 4948 Apr 16, 2003, 12:57 PM
Post Re: [TheStone] Retrieving data from checkboxes
charly 4893 Apr 16, 2003, 10:45 PM