以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]请问静态网页如何获取通过链接请求的参数呢? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=189770) |
-- 作者:km007 -- 发布时间:2023/12/25 11:26:00 -- [求助]请问静态网页如何获取通过链接请求的参数呢? 例如一下这行http请求链接代码 那么我在 ceshi.html 这个静态网页中 如何写代码 获取 id 的值呢?
[此贴子已经被作者于2023/12/25 11:26:08编辑过]
|
-- 作者:有点蓝 -- 发布时间:2023/12/25 11:49:00 -- 使用getvalues获取:http://www.foxtable.com/mobilehelp/topics/0113.htm |
-- 作者:km007 -- 发布时间:2023/12/25 13:51:00 -- Dim sb As New StringBuilder sb.AppendLine("通过GET方式提交的数据:<br/><br/>") For Each key As String In e.GetValues.Keys sb.AppendLine(key & ":" & e.GetValues(key) & "<br/>") Next sb.AppendLine("<br/><br/>通过POST方式提交的数据:<br/><br/>") For Each key As String In e.PostValues.Keys sb.AppendLine(key & ":" & e.PostValues(key) & "<br/>") Next e.WriteString(sb.ToString) 这个直接写成 html代码是什么写呢?
|
-- 作者:有点蓝 -- 发布时间:2023/12/25 14:11:00 -- 没看懂到底要做什么? |
-- 作者:km007 -- 发布时间:2023/12/25 14:16:00 -- ceshi.html 网页代码如下 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c /> <title>无标题文档</title> </head> <body> 接收到的id值为12 </body> </html> 就是上面这段网页代码 接收id的参数 这里的html代码是怎么写的? |
-- 作者:有点蓝 -- 发布时间:2023/12/25 14:18:00 -- 参考:http://www.foxtable.com/mobilehelp/topics/0014.htm |