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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Go to same server to get the database...

Status
Not open for further replies.

heyhey84

Programmer
Aug 31, 2003
16
SG
I had make a drop-down list. I want to make it link to the same server to get different database.

<p><b>Select:
<select name=&quot;country&quot;>
<option value =&quot;singapore&quot;>Singapore</option>
<option value =&quot;malaysia&quot;>Malaysia</option>
<option value =&quot;china&quot;>China</option>
</select>
</p>
<script type=&quot;text/vbscript&quot;>
select case OPTION
case &quot;singapore&quot;
set objConn2.ConnectionString = &quot;dsn=a;uid=sa;pwd=sa;&quot;
case &quot;malaysia&quot;
set objConn2.ConnectionString = &quot;dsn=b;uid=sa;pwd=sa;&quot;
case else
end select
</script>

It cannot work. May i know why?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top