gpt4 book ai didi

asp-classic - 检测用户的空/空输入

转载 作者:行者123 更新时间:2023-12-03 16:46:05 24 4
gpt4 key购买 nike

如何检查用户是否在经典 asp 中输入了空字符串或空字符串?现在我有这个代码。

If Request.Form("productId") == "" Then
'my code here
End If

但它不起作用。

最佳答案

经典的 ASP/VBScript 使用一个 = 来检查相等性,而不是两个。您可能想尝试的另一件事是

If Request.Form("productid") = "" Then
Code here
End If

关于asp-classic - 检测用户的空/空输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2838641/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com