View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Scrap your login page and readup on the Foxweb auth object and default login pages. You are getting nowhere fast. The auth object takes things into consideration like "user idle time", passing all form data onto the next requiried script and a lot more. (it seemlessly fits in between your scripts to provide user authentication). Writing your own script IS NOT WORTH IT!!!
 
Sent by Larry Zhang on 01/24/2006 06:50:49 AM:
I am actually wrong at this part. If I placed a new page name at
action=".....", it will always go to the new page even if you did not find the user id and password. Not sure how to validate the id and pwd before allowing the user go to the next page. Any hint?
 
Sent by Larry Zhang on 01/18/2006 07:42:24 AM:
I know why now.
The Form line should contains the name of the new page. Thank you.
<form action="test.fwx"  method="POST">
 
 
Sent by Larry Zhang on 01/18/2006 07:22:15 AM:
Thank you for your reply.
My purpose is to create a log on page. If user enters correct infor. and clicks the Submit button, he should be led to another page right away.
For the Submit button, I have sth. like this:
<input type="submit" value="Submit"  href="test.fwx" name="B3">
 
I also checked your Authentication.fwx sample file and could not see a dbf table being used and have no clue where you created the login form.
 
Larry
 
Sent by FoxWeb Support on 01/17/2006 02:19:23 PM:
The link must contain text and/or an image that the user would have to click in order to be directed to test.fwx:
 
<a href="test.fwx">Click here</a> 

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 01/17/2006 08:41:26 AM:
It seems to be a simple task. But when I use these code. It does not lead me to the test.fwx page. (test.fwx can be displayed if you run it independently.)
 
<html>
<body>
<basefont face="verdana, arial, helvetica" size=2>
<h3>Search Criteria:</h3>
<form action="NameSearch2.fwx" method="post">
Name:
<input name="name" maxlength="30" value="<%=Request.Form("name")%>">
<input type="submit" value="Search">
</form>
<hr>
<%
IF Request.FormCount("name") <> 0
   SET EXACT OFF
  SELECT * FROM Names;
            WHERE UPPER(name) = UPPER(Request.Form("name"));
         ORDER BY name INTO CURSOR results
  IF _TALLY > 0
      %><a href="test.fwx"></a><%      && Not working
  ELSE
      %><h3>Your Search Yielded No Results</h3><%
  ENDIF
ENDIF
%>
</body>
</html>