I've put the code below in a page on my site per the instructions BEFORE the <HTML> tage on the page:
<%
pagePassword = "<STRONG>cesaone</STRONG>"
passwordForm = "<STRONG>employeeswelcome.htm</STRONG>"
IF Session("pwfield"
<> pagePassword THEN
IF Request.Form("pwfield"
= pagePassword THEN
Session("pwfield"
= pagePassword
ELSE
Response.Redirect(passwordForm)
END IF
END IF
%>
It works beautifully in IE -- the page shows up with the form correctly in place, allows the password to be entered and retrieves the desired page; BUT not in Netscape. Instead of just the directions and form for entering the password, the code shows up at the start of the page and I can not retrieve the desired page after entering the password. I need it, obviously, to work in both. Can anyone tell me how to fix this?
<%
pagePassword = "<STRONG>cesaone</STRONG>"
passwordForm = "<STRONG>employeeswelcome.htm</STRONG>"
IF Session("pwfield"
IF Request.Form("pwfield"
Session("pwfield"
ELSE
Response.Redirect(passwordForm)
END IF
END IF
%>
It works beautifully in IE -- the page shows up with the form correctly in place, allows the password to be entered and retrieves the desired page; BUT not in Netscape. Instead of just the directions and form for entering the password, the code shows up at the start of the page and I can not retrieve the desired page after entering the password. I need it, obviously, to work in both. Can anyone tell me how to fix this?