Date:  01/24/2006 06:50:49 AM Msg ID:  002820
From:  Larry Zhang Thread:  002811
Subject:  Re: how to link to another page.
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.
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 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.)
<basefont face="verdana, arial, helvetica" size=2>
<h3>Search Criteria:</h3>
<form action="NameSearch2.fwx" method="post">
<input name="name" maxlength="30" value="<%=Request.Form("name")%>">
<input type="submit" value="Search">
IF Request.FormCount("name") <> 0
  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
      %><h3>Your Search Yielded No Results</h3><%