HELP on data passing
Posted: Wed Nov 15, 2006 6:24 pm
newbie here.... i am trying pass data from one page to multiple pages.... In a FORM, i can only put one page into the ACTION filed. Can anyone help? thx[/quote]
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
1) Send data to your server (using normal HTML submit) with PHP script catching FORM data
2) Your script forwards that FORM data onto X number of other scriptsCan u give me example? thx!!Hockey wrote:Use AJAX...or propagate that data onto other scripts using an HTTP library on the server side???
CheersCode: Select all
1) Send data to your server (using normal HTML submit) with PHP script catching FORM data 2) Your script forwards that FORM data onto X number of other scripts
Thanks for your reply. What I am trying to do is to build an easy utility page for industry vehicle power system. Each vehicle has number of power boxes. And the utility will take the data that needed to configure these boxes... calculate the data, displaying for the technician. (Here is the problem. Since there are too much data for single page, so I want to display the data in single page for each different box) Then, the data needs to be exported together again. Session Var might be the way to go.... I will find out. Thanks again.califdon wrote:I think what's confusing us here, qqragoon, is why you are using multiple "web pages" -- after all, you can only view one web page at a time, what do expect those web pages to do?? I suspect you really mean "php scripts" that will do some form of calculation. Probably you can do it all in one script. But the basic question is: what do you want to happen after you collect this data? You implied that you're not going to store it in a database. Are you going to display something to the user? If so, the php script that's called in the 'action' parameter of the form should accept all the data and display whatever you want to display in a web page. If there's more data that might be required at a different point, you might store them as Session Variables, available to the next script. Or you could store them in hidden Input controls on the web page that you send to the browser, to be "forwarded" to some other script called from the first web page. Help us to help you by explaining what you're trying to do.