问题描述
我要禁用我的命令按钮时,没有命中达到100,使用IC检索没有命中从MySQL。
I want to disable my command button when the no of hits reach 100 ,retrieving no of hits from mysql using IC.
我在做这样的事情,但它不工作。
I am doing something like this but its not working.
my $cc= [sql-param hits];
[if $cc>= 100 ]
<input type="Submit" name="cv" value="Vote" disabled="true"><br /><br />
[/if]
谢谢
宵
ThanksIsha
推荐答案
您可能会想坚持ITL,如果你能。你不应该需要Perl的code这一点。
You'll probably want to stick with ITL, if you can. You shouldn't need Perl code for this.
我没有在一段时间与IC搞砸,但类似这样(的 [查询]
标签中,当然)的东西可能工作...
I haven't messed with IC in a while, but something similar to this (within the [query]
tag, of course) might work...
[if-sql-param hits >= 100]
<input type="submit" name="cv" value="Vote" disabled="disabled"><br><br>
[/if-sql-param]
我没有看到任何输出禁用的按钮或什么的地步,虽然。你可能只是想输出,如果已禁用属性的情况是真实的。
I'm not seeing the point of outputting either a disabled button or nothing, though. You might just want to output the "disabled" attribute if the condition's true.
<input type="submit" name="cv" value="Vote"
[if-sql-param hits >= 100] disabled="disabled"[/if-sql-param]>
<br>
<br>
这篇关于禁用命令按钮的IC(立交)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!