|
查看: 988|回复: 3
|
避免 ' 在URL
[复制链接]
|
|
|
嗨。有个问题想问一下。。我是用ASP language 的。
ok, let say ..i have a URL with id number such as
www.abc.com/memberpage.asp?memberid=12.
when i add the symbol ' at the end of the url (like that:www.abc.com/memberpage.asp?memberid=12'), and enter, it will display error for my page.
But when i try to put a ' at this web page here, it will not display any error, how can i do this with ASP languagE?how can i avoid it using ASP language ?
请问那一位知道有什么方法吗?请帮一帮我?谢谢。 |
|
|
|
|
|
|
|
|
|
|
发表于 18-11-2007 09:39 PM
|
显示全部楼层
|
用 server.urlencode("12'") |
|
|
|
|
|
|
|
|
|
|
发表于 22-11-2007 08:24 PM
|
显示全部楼层
原帖由 紫蘑菇 于 18-11-2007 08:47 PM 发表 
嗨。有个问题想问一下。。我是用ASP language 的。
ok, let say ..i have a URL with id number such as
www.abc.com/memberpage.asp?memberid=12.
when i add the symbol ' at the end of the url (like ...
memberid 是用在SQL吗?
什么error? |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 23-11-2007 08:27 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|