Tibbs,
You must query the table that has the users choice in it, and put the output
in the TOP option tag with a SELECTED attribute and then put all the other
choices in the remaining tags:
SELECT name=3D"support"
cfoutput query=userschoices
OPTION SELECTED value=userchoicesID#SupportName#
/cfoutput
CFOUTPUT query=3D"showsupport"
OPTION value=3D"#SupportID#" #SupportName#/OPTION
/cfoutput
/SELECT
Dave
- Original Message -
From: Tiberiu Vasilica [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 28, 2000 5:19 AM
Subject: Preselect option in select
This is a multi-part message in MIME format.
--=_NextPart_000_0029_01BFB10B.F7FCCE00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello all,
How I can preselect an option so when the user comes back to the =
selection page to find his last selection in a list form?
Thank you
Tibbs
SELECT name=3D"suport"
CFOUTPUT query=3D"showsupport"
OPTION value=3D"#SupportID#" #SupportName#/OPTION
/cfoutput
/SELECT
--=_NextPart_000_0029_01BFB10B.F7FCCE00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type
META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR
STYLE/STYLE
/HEAD
BODY bgColor=3D#ff
DIVFONT face=3DArial size=3D2Hello all,/FONT/DIV
DIVnbsp;/DIV
DIVFONT face=3DArial size=3D2How I can preselect an option so when =
the user=20
comes back to the selection page to find his last selection in a list=20
form?/FONT/DIV
DIVnbsp;/DIV
DIVFONT face=3DArial size=3D2Thank you/FONT/DIV
DIVFONT face=3DArial size=3D2Tibbs/FONT/DIV
DIVnbsp;/DIV
DIVFONT face=3DArial size=3D2nbsp;nbsp;lt;SELECT=20
name=3D"suport"gt;BRnbsp;nbsp;nbsp;lt;CFOUTPUT=20
query=3D"showsupport"gt;BRnbsp;nbsp;nbsp;nbsp;lt;OPTION=20
value=3D"#SupportID#"=20
gt;#SupportName#lt;/OPTIONgt;BRnbsp;nbsp;nbsp;lt;/cfoutputgt;B=
Rnbsp;nbsp;lt;/SELECTgt;/FONT/DIV/BODY/HTML
--=_NextPart_000_0029_01BFB10B.F7FCCE00--
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.