If I had a login page that entered user data for a username and password, how would I post this information on another page that will be used to store subtitles and procedures, so that other pages will include this page so that I can to minimize the number I type the connection string.
So, I have login.asp, which I want to send login credentials for include.asp that will never be opened, if the login credentials are correct, then they will be sent to table.asp. If this is not the case, an error message should appear on the login.asp page.
I have provided code for the include.asp file that the user below will never see
Dim objCon, SQL, objRS
'Connect to Database
sub connect()
Set objCon = CreateObject("ADODB.Connection")
Set objRS = CreateObject("ADODB.Recordset")
objCon.Open "Provider=SQLOLEDB.1;Password=xxxx;Persist Security Info=True;User ID=xxxx;Initial Catalog=Customer;Data Source=xxxx"
SQL = "SELECT * FROM Customer"
objRS.open SQL, objCon
end sub
sub connectionClose()
objRS.close
objCon.close
end sub