I'm very new to PHPRunner and am trying to learn the ropes.
I have a table in MySql(AgencyName,AgencyLicNr(which is also the user's Logon), and AgencyPwd)
What I need to do after successful logon is this:
If logon is successful, grab AgencyName and AgencyLicNr as session variables
I added some code to the Logon page (after successful logon)
---------
str = "select * from Agency where AgencyLicNr='" & username & "' and AgencyPwd='" & password "'"
Set rstmp = server.CreateObject("ADODB.Recordset")
rstmp.open str,dbConnection
if not rstmp.eof then
Session("AgencyLicNr") = rstmp("AgencyLicNr")
Session("AgencyName") = rstmp("AgencyName")
end if
---------
The variables aren't being saved, I don't think, as on another ADD Page (Add Item page), I put the default value to the field AgencyName
Session("AgencyName")
The Agency table has AgencyLicNr and AgencyName, as does the Items table. The user shouldn't have to add these things if it's already gotten from their logon page.