I am working on a website that has a homepage, two pages that send out emails when reports have been entered into the fields, and two history pages. The two history pages contain the past reports that have been submitted and have been stored within a SQL database. I have both of these history webpages in the Account folder. When either history page is accessed from the web they are redirected to the login page. I am having a problem with getting the login page to work. I am able to get it to work perfectly when the website is running off the local host but once I run it from the web browser the login page does not connect to the SQL server to validate the username and password. How can I point the page to the correct server or how can I use active directory to allow some people to see the history but not everyone?