ODBiC Discussion Board


RE: Java Script and ODBIC, David, 05-18-2004

Don't need the Java Script

by Gordon Hsu, May 19, 2004 10:13

Hi,
David Java script is good but actually you don't need the Java script to do the validation.  
ODBiC can handle ALL the validation you want.  Here is the simple ODBiC file.

<HTML><HEAD><TITLE></TITLE><BODY> <!--IF $Submit1$ --> <!--IF LEN($Name1$) < 1 --> You forget to input the name <!--ELSE --> The name is <B>$Name1$</B>. <!--ENDIF --> <!--ENDIF -->

<FORM METHOD="POST" ACTION="$REPL($PATH_INFO$, $PATH_INFO_DIR$'/'='')"> Name: <INPUT TYPE="TEXT" NAME="Name1"> <INPUT TYPE="Submit" NAME="Submit1" VALUE="Submit Name"> </FORM> </BODY></HTML>



Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 


Copyright ©1997-2003, Roger Harris. All rights reserved.