嵌入 Google 表单的 php 网站

发布于 2024-09-28 01:25:24 字数 258 浏览 0 评论 0原文

我有一个正在开发中的 php 网站,运行良好。

我通过 iframe 标签在其中包含了一个谷歌电子表格表单,谷歌要求您复制并粘贴

电子表格表单,显然供用户使用。

这一切都太棒了,但我不知道如何通过 iframe 将用户 ID 从父页面获取到 google 表单中,

我需要这个,否则我不知道是谁提交了表单。是的,我会要求用户再次输入他们的名字,但我认为这有点笨拙,特别是因为信息漂浮在框架 iframe 的父页面中。

汤姆

i have a php site in development wh runs fine.

i have included a google spreadsheet form in it via the iframe tags that Google ask you to copy and paste

the spreadsheet form is obviously there for users to use.

it would be all be so great but I can't see how to get the users id from the parent page into the google form via the iframe

i need this otherwise i won't know who it is who has submitted the form. yes, I cld ask the user to type in their name again but think that's a bit clunky particularly since the info is floating about in the parent page framing the iframe.

Tom

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2024-10-05 01:25:24

为什么不创建一个 PHP 页面,在查询字符串中获取用户 ID,然后重定向到正确的电子表格?只需将该页面设置为 iframe 的 src,并在查询字符串中使用正确的用户 ID,然后瞧。

Why not create a php page which takes the user ID in the query string, then redirects to the correct spreadsheet? Just set that page as the src of your iframe with the proper user id in the query string, and voila.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文