This is a multi-part message in MIME format.
------=_NextPart_000_0021_01BFA554.5DDC0740
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm making a page that will let users view info about programs we use. =
The page has a list of four major groups and an others group. The =
others group is a drop down list. I want to display the name of =
programs in this list, but the page I am accessing uses the ID # of the =
program. Here's the code below. Maybe someone can help. =20
Thanks in advance for your help.
Richard
from body2.cfm:
<H3><FONT STYLE=3D"TEXT-DECORATION: underline">Other =
Programs</FONT></H3>
=20
<CFFORM ACTION=3D"view.cfm">
<SELECT NAME=3D"Name">=20
<CFOUTPUT QUERY=3D"Programs">
<CFIF Group IS "Other Programs">
<OPTION VALUE=3D"#ID#">#Name#
</CFIF>
</CFOUTPUT>
</SELECT>
<INPUT TYPE=3D"submit" VALUE=3D"View">
</CFFORM>
</TD>
</TR>
</table>
=20
view.cfm:
<CFQUERY DATASOURCE=3D"intranet" NAME=3D"Programs">
SELECT ID, Name, Version, Notes, Group
FROM Programs
WHERE ID LIKE '#ID#'
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Program Info</TITLE>
</HEAD>
<BODY BGCOLOR=3D"#B3BAFB" TEXT=3D"Navy">
<CFOUTPUT QUERY=3D"Programs">
<H3>#Group#</H3>
Program name: <B>#Name#</B>
<BR>
Latest Version: <B>#Version#</B>
<BR>
Notes: #Notes#
</CFOUTPUT>
<P>
<FORM ACTION=3D"proau1.cfm" METHOD=3D"POST">
<CFOUTPUT QUERY=3D"Programs">
<INPUT TYPE=3D"hidden" NAME=3D"ID" VALUE=3D"#ID#">
</CFOUTPUT>
<INPUT TYPE=3D"submit" VALUE=3D"Update">
</FORM>
</BODY>
</HTML>
------=_NextPart_000_0021_01BFA554.5DDC0740
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I'm making a page that will let users =
view info=20
about programs we use. The page has a list of four major groups =
and an=20
others group. The others group is a drop down list. I want =
to=20
display the name of programs in this list, but the page I am accessing =
uses the=20
ID # of the program. Here's the code below. Maybe someone =
can=20
help. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance for your =
help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Richard</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>from body2.cfm:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> <H3><FONT =
STYLE=3D"TEXT-DECORATION:=20
underline">Other Programs</FONT></H3><BR> =20
<BR> <CFFORM =
ACTION=3D"view.cfm"><BR> =20
<SELECT NAME=3D"Name"> <BR> <CFOUTPUT=20
QUERY=3D"Programs"><BR> <CFIF Group =
IS "Other=20
Programs"><BR> <OPTION=20
VALUE=3D"#ID#">#Name#<BR> =20
</CFIF><BR> =20
</CFOUTPUT><BR> =
</SELECT><BR> =20
<INPUT TYPE=3D"submit" VALUE=3D"View"><BR> =20
</CFFORM><BR> </TD><BR></TR><BR></table></FO=
NT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>view.cfm:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><CFQUERY DATASOURCE=3D"intranet"=20
NAME=3D"Programs"><BR> SELECT ID, Name, Version, Notes,=20
Group<BR> FROM Programs<BR> WHERE ID LIKE=20
'#ID#'<BR></CFQUERY></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><HTML></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial =
size=3D2><HEAD><BR> <TITLE>Program=20
Info</TITLE><BR></HEAD></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><BODY BGCOLOR=3D"#B3BAFB"=20
TEXT=3D"Navy"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><CFOUTPUT =
QUERY=3D"Programs"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial =
size=3D2> <H3>#Group#</H3></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> Program name:=20
<B>#Name#</B><BR> <BR><BR> Latest Version:=20
<B>#Version#</B><BR> <BR><BR> Notes:=20
#Notes#<BR></CFOUTPUT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><P></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><FORM ACTION=3D"proau1.cfm"=20
METHOD=3D"POST"><BR> <CFOUTPUT =
QUERY=3D"Programs"><BR> <INPUT=20
TYPE=3D"hidden" NAME=3D"ID"=20
VALUE=3D"#ID#"><BR> </CFOUTPUT><BR> <INPUT =
TYPE=3D"submit"=20
VALUE=3D"Update"><BR></FORM></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></BODY></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial =
size=3D2></HTML></FONT></DIV></BODY></HTML>
------=_NextPart_000_0021_01BFA554.5DDC0740--
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.