Start by Removing all spaces from your DB tables (Cuentas Usuarios) and ASP action pages (Log In.asp)
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
| In case, I'll show you the procedure in my Log In page in case for better
| explanation on it.
|
|
| <%
| ' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit.
|
| On Error Resume Next
| Session("FP_OldCodePage") = Session.CodePage
| Session("FP_OldLCID") = Session.LCID
| Session.CodePage = 1252
| Err.Clear
|
| strErrorUrl = "login_failed.asp"
|
| If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
| If Request.Form("VTI-GROUP") = "0" Then
| Err.Clear
|
| Set fp_conn = Server.CreateObject("ADODB.Connection")
| FP_DumpError strErrorUrl, "Cannot create connection"
|
| Set fp_rs = Server.CreateObject("ADODB.Recordset")
| FP_DumpError strErrorUrl, "Cannot create record set"
|
| fp_conn.Open Application("Safety_ConnectionString")
| FP_DumpError strErrorUrl, "Cannot open database"
|
| fp_rs.Open """Cuentas Usuarios""", fp_conn, 1, 3, 2 ' adOpenKeySet,
| adLockOptimistic, adCmdTable
| FP_DumpError strErrorUrl, "Cannot open record set"
|
| fp_rs.AddNew
| FP_DumpError strErrorUrl, "Cannot add new record set to the database"
| Dim arFormFields0(2)
| Dim arFormDBFields0(2)
| Dim arFormValues0(2)
|
| arFormFields0(0) = "username"
| arFormDBFields0(0) = "username"
| arFormValues0(0) = Request("username")
| arFormFields0(1) = "password"
| arFormDBFields0(1) = "password"
| arFormValues0(1) = Request("password")
|
| FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0
|
|
| fp_rs.Update
| FP_DumpError strErrorUrl, "Cannot update the database"
|
| fp_rs.Close
| fp_conn.Close
|
| Session("FP_SavedFields")=arFormFields0
| Session("FP_SavedValues")=arFormValues0
| Session.CodePage = Session("FP_OldCodePage")
| Session.LCID = Session("FP_OldLCID")
| Response.Redirect "Logged_in.asp"
|
| End If
| End If
|
| Session.CodePage = Session("FP_OldCodePage")
| Session.LCID = Session("FP_OldLCID")
|
| %>
| <%@ Language=VBScript %><html>
|
| <head>
| <meta name="VI60_defaultClientScript" content="VBScript">
| <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| <meta name="ProgId" content="FrontPage.Editor.Document">
| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
| <title>Impact Safety Analysis - Log In to System</title>
| <meta name="Microsoft Theme" content="pixel 011, default">
| </head>
|
| <body background="_themes/pixel/pixbkgnd.gif" bgcolor="#FFFFFF"
| text="#000000" link="#6666CC" vlink="#999999"
| alink="#663333"><!--mstheme--><font face="arial, Arial, Helvetica">
| <form BOTID="0" METHOD="POST" action="Log%20In.asp"
| webbot-action="--WEBBOT-SELF--">
| <!--webbot bot="SaveDatabase" SuggestedExt="asp" S-DataConnection="Safety"
| S-RecordSource="Cuentas Usuarios" U-Confirmation-Url="Logged_in.asp"
| U-Validation-Error-Url="login_failed.asp" S-Form-Fields="username password"
| S-Form-DBFields="username password" U-ASP-Include-Url="_fpclass/fpdbform.inc"
| startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--#include
| file="_fpclass/fpdbform.inc"--><!--webbot bot="SaveDatabase"
| i-checksum="40548" endspan --><p style="margin-top: 0; margin-bottom: 0"> </p>
| <!--mstheme--></font><table BORDER="0">
| <tr>
| <td><!--mstheme--><font face="arial, Arial,
| Helvetica"><b>username</b><!--mstheme--></font></td>
| <td><!--mstheme--><font face="arial, Arial, Helvetica"><input
| NAME="username" size="20"><!--mstheme--></font></td>
| </tr>
| <tr>
| <td><!--mstheme--><font face="arial, Arial,
| Helvetica"><b>password</b><!--mstheme--></font></td>
| <td><!--mstheme--><font face="arial, Arial, Helvetica">
| <p style="margin-top: 0; margin-bottom: 0">
| <input TYPE="password" NAME="password"
| size="20"><!--mstheme--></font></td>
| </tr>
| </table><!--mstheme--><font face="arial, Arial, Helvetica">
| <p style="margin-top: 0; margin-bottom: 0"> </p>
| <p style="margin-top: 0; margin-bottom: 0">
| <!--webbot bot="SaveAsASP" clientside suggestedext="asp" preview=" "
| startspan --><!--webbot bot="SaveAsASP" endspan --><input TYPE="submit"
| name="LogIn" value="Log In"></p>
| </form>
| <!--webbot bot="DatabaseRegionStart" s-columnnames="username,password"
| s-columntypes="202,202" s-dataconnection="Safety" b-tableformat="FALSE"
| b-menuformat="FALSE" s-menuchoice="username" s-menuvalue="username"
| b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
| b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="TRUE"
| s-recordsource="Cuentas Usuarios" s-displaycolumns="username,password"
| s-criteria="[username] EQ {username} + [password] EQ {password} +" s-order
| s-sql="SELECT * FROM "Cuentas Usuarios" WHERE (username =
| '::username::' AND password = ':

assword::')" b-procedure="FALSE"
| clientside suggestedext="asp"
| s-defaultfields="username=test&password=test" s-norecordsfound="No
| récords existentes." i-maxrecords="256" i-groupsize="0" botid="0"
| u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
| u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="BODY" preview="<table border=0
| width="100%"><tr><td bgcolor="#FFFF00" align="left"><font
| color="#000000">This is the start of a Database Results region. The page must
| be fetched from a web server with a web browser to display correctly; the
| current web is stored on your local disk or
| network.</font></td></tr></table>" b-WasTableFormat="FALSE" startspan
| --><!--#include file="_fpclass/fpdblib.inc"-->
| <% if 0 then %>
| <SCRIPT Language="JavaScript">
| document.write("<div style='background: yellow; color: black;'>The Database
| Results component on this page is unable to display database content. The
| page must have a filename ending in '.asp', and the web must be hosted on a
| server that supports Active Server Pages.</div>");
| </SCRIPT>
| <% end if %>
| <%
| fp_sQry="SELECT * FROM ""Cuentas Usuarios"" WHERE (username =
| '::username::' AND password = ':

assword::')"
| fp_sDefault="username=test&password=test"
| fp_sNoRecords="No récords existentes."
| fp_sDataConn="Safety"
| fp_iMaxRecords=256
| fp_iCommandType=1
| fp_iPageSize=0
| fp_fTableFormat=False
| fp_fMenuFormat=False
| fp_sMenuChoice="username"
| fp_sMenuValue="username"
| fp_iDisplayCols=2
| fp_fCustomQuery=False
| BOTID=0
| fp_iRegion=BOTID
| %>
| <!--#include file="_fpclass/fpdbrgn1.inc"-->
| <!--webbot bot="DatabaseRegionStart" endspan --><p><b>
| username:</b> <!--webbot bot="DatabaseResultColumn"
| s-columnnames="username,password" s-column="username" b-tableformat="FALSE"
| b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1"><<</font>username<font size="-1">>></font>" startspan
| --><%=FP_FieldVal(fp_rs,"username")%><!--webbot bot="DatabaseResultColumn"
| endspan --></p>
| <p><b>password:</b> <!--webbot bot="DatabaseResultColumn"
| s-columnnames="username,password" s-column="password" b-tableformat="FALSE"
| b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1"><<</font>password<font size="-1">>></font>" startspan
| --><%=FP_FieldVal(fp_rs,"password")%><!--webbot bot="DatabaseResultColumn"
| endspan --></p>
| <!--msthemeseparator--><p align="center"><img
| src="_themes/pixel/apixrule.gif" width="600" height="10"></p>
| <!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE"
| b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
| clientside tag="BODY" preview="<table border=0 width="100%"><tr><td
| bgcolor="#FFFF00" align="left"><font color="#000000">This is the end of a
| Database Results region.</font></td></tr></table>" startspan --><!--#include
| file="_fpclass/fpdbrgn2.inc"-->
| <!--webbot bot="DatabaseRegionEnd" endspan
| --><!--mstheme--></font></body></html>
|