Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]请问静态网页如何获取通过链接请求的参数呢?

1楼
km007 发表于:2023/12/25 11:26:00
例如一下这行http请求链接代码

<div><a href="http://127.0.0.1/ceshi.html?id=12" target="_blank" class="button">查阅详情</a></div>

那么我在 ceshi.html 这个静态网页中 如何写代码 获取 id 的值呢?
[此贴子已经被作者于2023/12/25 11:26:08编辑过]
2楼
有点蓝 发表于:2023/12/25 11:49:00
使用getvalues获取:http://www.foxtable.com/mobilehelp/topics/0113.htm
3楼
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代码是什么写呢?
4楼
有点蓝 发表于:2023/12/25 14:11:00
没看懂到底要做什么?
5楼
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代码是怎么写的?

6楼
有点蓝 发表于:2023/12/25 14:18:00
参考:http://www.foxtable.com/mobilehelp/topics/0014.htm
共6 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03516 s, 2 queries.