<script Language="Javascript">
alert('First Name = '+fname);
alert('Second Name = '+sname);
</script>
The test.asp page
<%
' Get something from a database using asp
Set oConn = Server.CreateObject("ADODB.Connection")
....
' Now add the results to the HTML page
Response.Write "var fname=" & oRsf.Fields("FName") & ";"
Response.Write "var sname=" & oRsf.Fields("SName") & ";"
%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.