I did this in Links v.1.3 using a foreach loop of records found in the query...(basically what pugdog alluded to), but I made the select codes into a template file using tags from the table....
Like the following:
<select name="ColumnName" size="1">
<option value="<%columname%>"><%columntitle%></option>
</select>
Basically, this template is pulled if the query finds records....
In the main template:
<%if Columname%>
<%Columname%>
<%else%>
No Records Found.
<%endif%>
Basically, I would recommend making the select field template based for easier management and flexibility.
Regards,
Eliot Lee
Like the following:
Code:
<select name="ColumnName" size="1">
<option value="<%columname%>"><%columntitle%></option>
</select>
Basically, this template is pulled if the query finds records....
In the main template:
Code:
<%if Columname%>
<%Columname%>
<%else%>
No Records Found.
<%endif%>
Basically, I would recommend making the select field template based for easier management and flexibility.
Regards,
Eliot Lee