Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: Select field that pulls data from another table

Quote Reply
Re: Select field that pulls data from another table In reply to
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:

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
Subject Author Views Date
Thread Select field that pulls data from another table scooley 2615 Jun 25, 2001, 9:17 PM
Post Re: Select field that pulls data from another table
pugdog 2545 Jun 26, 2001, 6:34 AM
Thread Re: Select field that pulls data from another table
Stealth 2539 Jun 29, 2001, 11:28 AM
Post Re: [Heckler] Select field that pulls data from another table
Nomada 2474 Mar 21, 2002, 4:16 AM