简体   繁体   English

PHP将数据发送到重定向页面

[英]PHP sending data to the redirected page

I am building a small website for viewing and amending data entries in a database. 我正在建立一个小型网站,用于查看和修改数据库中的数据条目。

I have a form where a user can select the table they want to view in a drop down select. 我有一个表单,用户可以在下拉菜单中选择要查看的表。

On submit I call a php script which handles pulling the data and then redirects to the .html site on which I want to display the results. 在提交时,我调用一个php脚本,该脚本处理提取数据,然后重定向到我要在其上显示结果的.html站点。

I know that my script works in that if I do not use the header redirect the correct results are printed. 我知道我的脚本起作用的原因是,如果不使用标题重定向,则会打印正确的结果。

I am wondering how I can access the data from the website I'm redirecting to so that I could display them. 我想知道如何从重定向到的网站访问数据,以便可以显示它们。 I would welcome any alternative suggestions. 我欢迎任何其他建议。

The .html implies static data, are the tables always static or are you loading from a data source (mysql, etc)? .html隐含静态数据,表始终是静态的还是从数据源(例如mysql等)加载的? If you're just trying to load a static HTML page from a drop down, then maybe you should just use javascript? 如果您只是想从下拉菜单中加载静态HTML页面,那么也许应该只使用javascript?

http://webdesign.about.com/od/javascript/f/blfaqddredirect.htm http://webdesign.about.com/od/javascript/f/blfaqddredirect.htm

Unless I am mistaken on what you are attempting to do. 除非我对您尝试做的事情弄错了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM