主题:  帮我看看是怎么回事?

niewind

职务:普通成员
等级:1
金币:1.0
发贴:198
#12002/4/15 16:39:08
因刚学,按教程自己学着做出了点问题!~

我在niewind5.cfm中有一向数据库插入记录的提交表单,(已能实现数据库查询)


姓名






在niewind005.cfm中判断:



后面的省略。
报了错!~



niewind

职务:普通成员
等级:1
金币:1.0
发贴:198
#22002/4/15 16:41:56
什么都不填,直接提交报了这样的错,帮我看看!~
Error Diagnostic Information
Context validation error in tag CFIF

The tag is not correctly positioned relative to other tags in the template: tag CFIF must have some content. This means that there must be at least one tag, some text, or even just whitespace characters between the and markers.

This problem may be due to a CFML comment that has no end comment mark.

The error occurred while processing an element with a general identifier of (CFIF), occupying document position (2:1) to (2:37).

The specific sequence of files included or processed is:
C:\Inetpub\wwwroot\niewind\niewind005.cfm

编辑历史:[这消息被niewind编辑过(编辑时间2002-04-15 16:43:36)]


5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#32002/4/15 16:49:11



后面的省略。

肯定错误!
第二个cfif 没有结束!
应该是:



这样的!而且可以这么写:





一句话就可以了!



肖和

职务:普通成员
等级:1
金币:10.0
发贴:266
#42002/4/15 16:54:23
上帝,呀,朋友,这此东西,一个都不明白,



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#52002/4/15 16:56:05
这些都是比较基础的语法了!如果懂点变成都应该会看懂的!
这些都是C的语法
fi
else
end
set
什么的!



肖和

职务:普通成员
等级:1
金币:10.0
发贴:266
#62002/4/15 17:01:03
cfif ==if

又是搞标签,,



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#72002/4/15 17:04:22
cfif = if
其实你也用C++直接写

set a = 001
if not a is 1

#a 不等于 001#

else

#a 等于 001

end




肖和

职务:普通成员
等级:1
金币:10.0
发贴:266
#82002/4/15 17:11:44

 那还可以,这样学下去,真是会累死人呀,,



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#92002/4/15 17:13:15
这还累人呀?
你看看asp和jsp的脚本那就别活了!
cfml已经是web application 中脚本最简练的了!



肖和

职务:普通成员
等级:1
金币:10.0
发贴:266
#102002/4/15 17:23:43
嘿嘿,有得活了,,

以后,但愿我如愿以偿