Using ASP: (I'm sure this can be also done with PHP)
<% 'Fragmented code below. If you don't know ASP/ Learn it!
dim yourValue
'Database query
SQL="Select ID,Fname from SomeTable"
'create recordset
set objRec=server.createobject("ADODB.recordset"
'set recordset
objRec.open objConn.execute(<your SQL code>)
'set ASP variable
yourValue=objRec("ID"

%>
<HTML>
<HEAD>
<Script language=vbscript>
dim yourVariable
'this is how you would assign the database field
'to your vbscript variable
yourVariable=<%=yourValue%>
</Script>
</Head>
<BODY>
</BODY>
</HTML>
"did you just say Minkey?, yes that's what I said."
MrGreed