Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,虽然我的 igoogle 应用程序基本上是使用 xml/php 文件并获取一系列文章并显示它们,但我已经使我的 igoogle 应用程序变得简单。简单而美好。
现在我只需要通过传递用户想要展示的故事来完成它。当他们点击谷歌区域中的编辑设置时,我已经让下拉菜单工作,但我不知道如何将信息传递回我的 php/xml 文件并显示用户选择的故事数量。
任何人都可以帮忙。
做一个<form>
<form>
自动提交
<select name='myfield' onchange='this.form.submit()'> <option .... > ... </select> </form>
那么你得到了$_POST['myfield']
$_POST['myfield']
有一个关于使用 userpref 的简短文档。它可能会帮助你。查看此Google 文档,他们还列出了如何以 GET 和 POST 两种类型处理远程内容,查看此文档也可以处理远程内容