The FP-code below works only if the user turns off the pop up blocker. This is very annoying.
<!--#include file="_fpclass/fpdblib.inc"-->
<%
fp_sQry="SELECT * FROM members WHERE (username = '::username::' AND password = ':assword::')"
fp_sDefault="username=&password="
fp_sDataConn="TEST"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice="username"
fp_sMenuValue="username"
fp_iDisplayCols=19
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<%Session("uid")=cStr(fp_rs("member-ID"))
%>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
<%
IF Session("UID")&"" = "" then ' the session is empty
response.redirect("url_exit.htm")
ELSE
url = "zyx5.htm"
response.write("<script>" & vbCrLf)
response.write("window.open('" & url & "');" & vbCrLf)
response.write("</script>")
END IF
Is it possible to make the code work without the pop up problem ?
Thanks for tips.
<!--#include file="_fpclass/fpdblib.inc"-->
<%
fp_sQry="SELECT * FROM members WHERE (username = '::username::' AND password = ':assword::')"
fp_sDefault="username=&password="
fp_sDataConn="TEST"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice="username"
fp_sMenuValue="username"
fp_iDisplayCols=19
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<%Session("uid")=cStr(fp_rs("member-ID"))
%>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
<%
IF Session("UID")&"" = "" then ' the session is empty
response.redirect("url_exit.htm")
ELSE
url = "zyx5.htm"
response.write("<script>" & vbCrLf)
response.write("window.open('" & url & "');" & vbCrLf)
response.write("</script>")
END IF
Is it possible to make the code work without the pop up problem ?
Thanks for tips.