Could be an issue on the webserver if PHP has register_globals set to off...

"David Barrett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to