hi...I am trying to open a new window with a URL that is stored in a database...can someone see what's wrong with this code??? thanks.
<%@ Language=VBScript %>
<!--#include file="Reborn.inc"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
<!--
function popwindow(URL) {
window.open (URL)
}
-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="frmIndex">
<%
dim rsSites
dim query
set rsSites = Server.CreateObject("ADODB.Recordset"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
query = "select * from tblSites"
rsSites.Open query, objConn, adOpenDynamic, adLockReadOnly, adcmdText
%>
<select name="mnuSites" onChange="popwindow(<%=rsSites("Site_Address"
%>;">
<option selected><<< More Great Sites >>> </option>
<%do while not rsSites.EOF%>
<option><%=rsSites("Site_Title"
%></option>
<%
rsSites.MoveNext
loop%>
</select>
<%
rsSites.Close
objConn.Close
set rsSites = nothing
set objConn = nothing
%>
</form>
</body>
</html>
<%@ Language=VBScript %>
<!--#include file="Reborn.inc"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
<!--
function popwindow(URL) {
window.open (URL)
}
-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="frmIndex">
<%
dim rsSites
dim query
set rsSites = Server.CreateObject("ADODB.Recordset"
query = "select * from tblSites"
rsSites.Open query, objConn, adOpenDynamic, adLockReadOnly, adcmdText
%>
<select name="mnuSites" onChange="popwindow(<%=rsSites("Site_Address"
<option selected><<< More Great Sites >>> </option>
<%do while not rsSites.EOF%>
<option><%=rsSites("Site_Title"
<%
rsSites.MoveNext
loop%>
</select>
<%
rsSites.Close
objConn.Close
set rsSites = nothing
set objConn = nothing
%>
</form>
</body>
</html>