hie pal ,
Y will have to store the value which ur client has selected in the
database along with its corresponding
highlighted value
eg:<option value="IND">India</option>
Now store 'IND' in one field
and 'India' in 2nd field.
Now while retriving a users profile select the option and its
corresponding value the user has selected via a select Query.
store it in 2 variables var1 and var2(var1='IND' and var2='India').
Now at the top of option list do:
<option value=var1>var2 selected</option>
so that client is able to see his selected option on the top followed by
other offerd choices
[Moderator's note: I think it should be as follows...
<option value="var1" selected>var2</option>
...rather than the other way round, as you specify.]
-------------------------------------------------------
On Tue, 19 December 2000, "Matthew Hafner" wrote:
>
> im reading values out of a database and populating a form. everything works
> fine, but, i cant get the values from the database to highlight its
> corresponding value in a drop down box. is this possible? or does the user
> have to reselect this field everytime they view their user profiles?
>
> Matthew Hafner
> Web Applications Engineer
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to pro_jsp as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_jsp-$subst('Recip.MemberIDChar')@p2p.wrox.com