request 加号的问题

haiyun365 2009-08-18 02:34:28
<%=request("a")%>
当 a=3+1.2 的时候 + 传递不过来
问问大家该怎么处理
100分
...全文
239 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jerry_zuo 2009-08-18
  • 打赏
  • 举报
回复

a=3+1.2 -> 转化为 a=3%2B1.2

dim a=3%2B1.2
<%=request("a")%>

上官码农 2009-08-18
  • 打赏
  • 举报
回复
dim a=3%2B1.2
<%=request("a")%>
Dogfish 2009-08-18
  • 打赏
  • 举报
回复
Function URLDecode(sConvert)
Dim aSplit
Dim sOutput
Dim I
If IsNull(sConvert) Then
URLDecode = ""
Exit Function
End If

' convert all pluses to spaces
sOutput = REPLACE(sConvert, "+", " ")

' next convert %hexdigits to the character
aSplit = Split(sOutput, "%")

If IsArray(aSplit) Then
sOutput = aSplit(0)
For I = 0 to UBound(aSplit) - 1
sOutput = sOutput & _
Chr("&H" & Left(aSplit(i + 1), 2)) &_
Right(aSplit(i + 1), Len(aSplit(i + 1)) - 2)
Next
End If

URLDecode = sOutput
End Function
hookee 2009-08-18
  • 打赏
  • 举报
回复
a=3+1.2 -> 转化为 a=3%2B1.2
即+写成%2B

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧