Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare value in listbox ???

Status
Not open for further replies.

bkyeong

MIS
Aug 7, 2002
6
0
0
US
Currently, I have a list box with
<select name=&quot;test&quot;>
<option value=&quot;100&quot;>100</option>
<option value=&quot;122&quot;>122</option>
</select>

now i would like to compare the value that store in
a database called TEMP with the value above.
if the value that query from the database is e.g 999, i would like the listbox to display the value. .(The list box will show &quot;100&quot;,&quot;122&quot;,&quot;999&quot;)
On the other hand, If the value that query from the database is e.g 122, i just wish the listbox display the default value in the HTML form above.(The list box will show &quot;100&quot;,&quot;122&quot;)
Pls help. Thank you so much
 
Are you only using javascript or are you perhaps using perl as well? Cause I have a similiar section of code in perl that matches your needs.


Sean.
psa.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top