简体   繁体   中英

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.

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)? If you're just trying to load a static HTML page from a drop down, then maybe you should just use javascript?

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

Unless I am mistaken on what you are attempting to do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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