|
BeTheBall -> RE: How to End a DRW Function (4/4/2005 17:03:27)
|
Sorry, poor communication on my part. My intention was that you would replace this section of your code: <%
If request.form("ProfileID") = 0 then
End Function
ElseIf request.form("ProfileID") = 1 then
fp_sQry="INSERT INTO Profile (MemStatus, UserName, Pwd, FirstName, LastName, Email1, IPAddr, RegID, RegDate) VALUES ('Registered', '::Username::', '::Pwd::', '::FirstName::', '::LastName::', '::Email::', '::IPAddr::', ::RegID::, '::RegDate::')"
fp_sDefault="Username=&Pwd=&FirstName=&LastName=&Email=&IPAddr=&RegID=&RegDate="
ElseIf request.form("ProfileID") > 1 then
fp_sQry="UPDATE Profile SET MemStatus='Registered', UserName='::Username::', Pwd='::Pwd::', Email1='::Email::', RegID=::RegID::, RegDate='::RegDate::' WHERE ProfileID=::ProfileID::"
fp_sDefault="Username=&Pwd=&Email=&RegID=&RegDate=&ProfileID="
End If
fp_sNoRecords="<tr><font face=""Verdana"" size=""2"" color=""#FF0000"">REGISTRATION SUCCESSFUL </tr>"
fp_sDataConn="spcp"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&"
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--#include file="../_fpclass/fpdbrgn2.inc"-->
with what I placed above. Also, to see the true error, go into IE and choose, Tools - Internet Options and click the Advanced tab. Then scroll down to the box labeled, "Show friendly http error messages" and uncheck it.
|
|
|
|