web_error.zhtml

来自「Zword公司的Rabbit2000系列相关文件」· ZHTML 代码 · 共 43 行

ZHTML
43
字号
<!-- This file shows how to user the error messages generated by the WEB_ERROR()
     feature.  See the tags in the <FORM> ... </FORM> section. -->

<HTML>

<HEAD>
<TITLE>WEB_ERROR() and Displaying Error Messages</TITLE>
</HEAD>

<BODY>
<H1>WEB_ERROR() and Displaying Error Messages</H1>

<!-- The following if statement checks if there is an error on the temperature
     variable. -->
<?z if (error($temperature)) { ?>
	<!-- Note in the following message that the echo statement displays the
	     error message generated by the #web guards for the temperature 
	     variable. -->
	The temperature variable is in error!  The value is
	<?z echo(error($temperature)) ?>.
	<P>
<?z } ?>

<FORM ACTION="/index.zhtml" METHOD="POST">

<TABLE>
<!-- The following row in the table is for the temperature variable. -->
<TR>
<TD>temperature</TD>
<TD>
<INPUT TYPE="text" NAME="temperature" VALUE="<?z echo($temperature) ?>">
</TD>
</TR>
</TABLE>
<P>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</FORM>

</BODY>
</FORM>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?