Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Bearwithme] pulldown select fields

Quote Reply
Re: [Bearwithme] pulldown select fields In reply to
hello Bearwithme

put

Code:
sub { my $tags = shift; my $table = $DB->table('Database_name'); my $sth = $table->select (['column']); my $output = '<select name=select_name multiple>'; while (my $row = $sth->fetchrow_hashref) { $output .= '<option value='.$row->{column}.'></option>'; } $output .= '</select>'; return $output; }


and call by global_var

then you put <%global_var%> at the place where the select field have to been



BY hoefti

<- German dbmansql User ->
linktobuy Web Directory
Ratgeber Recht
Subject Author Views Date
Thread pulldown select fields Bearwithme 6456 May 23, 2002, 12:06 PM
Post Re: [Bearwithme] pulldown select fields
Bearwithme 6307 May 25, 2002, 11:20 AM
Thread Re: [Bearwithme] pulldown select fields
jean 6279 May 27, 2002, 12:40 AM
Thread Re: [jean] pulldown select fields
Bearwithme 6262 May 27, 2002, 2:15 AM
Post Re: [Bearwithme] pulldown select fields
Halito 6242 May 29, 2002, 1:02 PM
Thread Re: [Bearwithme] pulldown select fields
hoefti 6230 May 30, 2002, 5:58 AM
Thread Re: [hoefti] pulldown select fields
Bearwithme 6275 May 30, 2002, 7:07 AM
Post Re: [Bearwithme] pulldown select fields
hoefti 6235 May 30, 2002, 1:14 PM
Post Re: [Bearwithme] pulldown select fields
Halito 6203 Jun 3, 2002, 2:23 PM