|Newbie questions about Pliant
|Message posted by maybe Dain on 2003/01/19 23:44:40
|I'm fairly new to pliant, and was curious if there is a way to create an option box which gets populated from a database.
The html code for and option box is
<option ... >data1</option>
<option ... >data2</option>
|Message posted by maybe Marcus on 2003/01/20 00:39:43
|Oops, I forgot to document this instruction.
I have added it to the .page documentation, please check at
However, the example I mention is not in the database context.
Using 'select' in a database context is very easy. You can use it in combination
with the 'each' instruction, which enumerates a set of items from a database
(see the database engine docs for more details, @
Here is a simple example:
var Str studentName
select "Name: " studentName
each s student
option s:name s:name
In this case, all student names will be listed in the pull-down menu.
I hope this helps.