jamesdboggs
Technical User
I have one table that contains a select box that currently displays email addresses (after selecting an email domain from a first select list) that can be selected from a list, using a query to the database table on the email column. Is there a way to display other column value with the email address so users can see them all in the select box, but still have only the email address submitted when selected? My current code below desn't quite work, attempting to use a concatenated string winds up submitting the whole string, not just the email field.
<td width="80" rowspan="5" valign="top" align="center">
<%
getUsers = "Select user_id , email, frst_nm, midl_nm, lst_nm, dept, company), from user_profile where email_domain = '" & strDomain & "' order by user_id "
set rsgetUsers=MCATS.execute(getUsers)
%>
<select size="20" width="75" name="srcList" multiple onkeypress="entsub()" onDblCLick="javascript:addSrcToDestList()">
<% DO UNTIL rsgetUsers.eof%>
<option value="<%= rsgetUsers("email"
%>">
<%= rsgetUsers("user_id"
+ rsgetUsers("frst_nm"
+ rsgetUsers("midl_nm"
+ rsgetUsers("lst_nm"
+ rsgetUsers("dept"
+ rsgetUsers("company"
%>
</OPTION>
<%rsgetUsers.movenext
LOOP
%>
</SELECT>
</TD>
<td width="80" rowspan="5" valign="top" align="center">
<%
getUsers = "Select user_id , email, frst_nm, midl_nm, lst_nm, dept, company), from user_profile where email_domain = '" & strDomain & "' order by user_id "
set rsgetUsers=MCATS.execute(getUsers)
%>
<select size="20" width="75" name="srcList" multiple onkeypress="entsub()" onDblCLick="javascript:addSrcToDestList()">
<% DO UNTIL rsgetUsers.eof%>
<option value="<%= rsgetUsers("email"
<%= rsgetUsers("user_id"
%>
</OPTION>
<%rsgetUsers.movenext
LOOP
%>
</SELECT>
</TD>