Date:  01/25/2006 07:38:37 AM Msg ID:  002826
From:  Larry Zhang Thread:  002826
Subject:  How to check form field is empty?
If user enters his id and password, we check his identity.
If not, we give a prompt. But using these codes, we get the prompt right away, because the field is empty at the very beginning.
 
We used to put codes in the Valid event of a command button. How to do the same (or similar) in FoxWeb? Thank you.
 

<%

IF !empty(Request.Form("User_id"))

   Select ......

Else

   %><h4> Sorry. User ID or Password can not be empty. </h4>

<%
Endif

%>