The solution must assume that I DO NOT HAVE ACCESS to the first script (from which the form is posted). Obviously if I assume access to the script, I wouldn't be doing it this way anyway, it is very inefficient. While the example script is located on my server, this is just to show what I am trying to achieve.
I have received a solution that should work (thank-you Hartmut). I am going to test it shortly. "Larry Brown" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > There is probably a better way but what I do is create hidden fields in the > form of the first page and populate it with the variable I need to go on to > the next one. Ie for variable a, b, c, d coming to the first page... > > <form name=sendit action=nextwebpage method=post> > > [Do something with some or all of those variables here] > > echo "<input type=hidden name=a value=$a>"; > echo "<input type=hidden name=b value=$b>"; > echo "<input type=hidden name=c value=$c>"; > echo "<input type=hidden name=d value=$d>"; > echo "<input type=submit value=\"Next Page\"> > echo "</form> > > That is what I usually do because I don't know of a better way. So if you > don't find one you can always resort to that. And if you need these to move > on automatically by telling another frame window what the variables are > while this one is still visible, you can use javascript to send variables to > other frames. That is out of the scope of this message and I'd have to look > up the syntax for that, but it is definitely possible. > > > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > -----Original Message----- > From: David Barrett [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 9:30 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Forwarding POST info from a PHP script > > I want to be able to retrieve POST variable in one PHP script (which is > straight-forward) and then send these from the script to another one > returning the processed input. > > I have written a script that will parse a frames-based page and render it as > a flat page (i.e. all frames displayed as a table in one HTML file) - this > is so that I can create a website using frames, and still let browsers that > don't support frames to access it without my having to create a separate > version of the site. > > e.g.: > http://www.redradish.co.uk/rr/index.htm (frames based site) > http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra > dish.net/rr/index.htm&RenderMethod=1&MainFrame=main&AllHead=1 > (the same site > rendered as single page). > > The problem is that if in the frames-based site one of the frames is a form > submission, I need to be able to send this data to the original form and > retrieve the output to display in the rendered page. > > e.g. > http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra > dish.net/rr/index.htm&TargetName=main&Target=http://www.redradish.net/rr/con > tact/contactF.htm&MainFrame=main&RenderMethod=1&LinkSearch=1&AllHead=1&Debug > =1 > (this is a page that has a contact form). > > I can't find any information on how to forward such a request. > > The script in question is located at: > http://www.redradish.co.uk/php/framesprocessor.php > > It uses these variables (passed using GET or POST): > Frameset frameset page. This needs to be parsed and a static HTML page > created. > Target (optional) full URL of page to be displayed in frmae named > TargetName. > TargetName (optional) name of the frame that $Target should appear in. > MainFrame (optional) is the frame from which header info, etc. is > taken. > Default is first frame. > AllHead (optional) If set (is 1 or more), copies <HEAD> content from all > frames. > RenderMethod (optional) defines how the frameset is to be represented: > 1 - All frames dumped into new page in order they appear in > frameset. > 2 - tables are used to attempt to recreate original format > Default is 1. > LinkSearch (optional) how links are replaced: > 1 - Only specific tags are replaced > 2 - Anything within quotes (' or ") that contains document path is > replaced > Default is 1. > Debug If set (greater than 0), debug info is added in comments. > > It works to a good degree on most frames-based sites, but does have a couple > of failings (such as the one mentioned) that I would like to overcome. > > The other problem is handling JavaScript in e.g. <frame > src="JavaScript:openpage(xx)">. There is no way to process JavaScript in > PHP that I am aware of - does anyone have a workaround for this? i.e. so > that my script can process the JavaScript function and retrieve the relevant > page for inclusion in the rendered page. > > > Hope someone can help! > > Thanks. > > Dave > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php