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="country">
<option value ="singapore">Singapore</option>
<option value ="malaysia">Malaysia</option>
<option value ="china">China</option>
</select>
</p>
<script type="text/vbscript">
select case OPTION
case "singapore"
set objConn2.ConnectionString = "dsn=a;uid=sa;pwd=sa;"
case "malaysia"
set objConn2.ConnectionString = "dsn=b;uid=sa;pwd=sa;"
case else
end select
</script>
It cannot work. May i know why?
<p><b>Select:
<select name="country">
<option value ="singapore">Singapore</option>
<option value ="malaysia">Malaysia</option>
<option value ="china">China</option>
</select>
</p>
<script type="text/vbscript">
select case OPTION
case "singapore"
set objConn2.ConnectionString = "dsn=a;uid=sa;pwd=sa;"
case "malaysia"
set objConn2.ConnectionString = "dsn=b;uid=sa;pwd=sa;"
case else
end select
</script>
It cannot work. May i know why?