How can I create a frameset and top frame all in one PHP file?

El Director

New member
I have a top frame template renderer. The page that will be the frame's source uses PHP to send variables that the user sets, such as the back to URL and name. I use require to pull in the template, and it uses the variables that are defined at the top of the page.

However, is there a way that I could make all this happen in one file? I don't want to have to create the page that calls the template, filling in the user-defined variables and the pages that contains the actual frameset and frame src="" code.

Is there a way using PHP to set the variables all in the frameset page, and have src= something that the variables could be passed into (maybe using a link.php?x=whatever&y=duh). Then link would be a static template rendering page that would take those variables and create the page based on them?

Sorry that I'm not very articulate on this. Hope you can help anyway.
 
Framesets should be avoided. Using frames is an obsolete concept from about 10 years ago, and search engines tend not to index content found on frameset pages because they are actually empty- they only reference pages elsewhere.

That said, one PHP file can generate only one web page. It can be the frameset page, or some other page. It can not possibly generate more than one output HTML page.
 
Framesets should be avoided. Using frames is an obsolete concept from about 10 years ago, and search engines tend not to index content found on frameset pages because they are actually empty- they only reference pages elsewhere.

That said, one PHP file can generate only one web page. It can be the frameset page, or some other page. It can not possibly generate more than one output HTML page.
 
Framesets should be avoided. Using frames is an obsolete concept from about 10 years ago, and search engines tend not to index content found on frameset pages because they are actually empty- they only reference pages elsewhere.

That said, one PHP file can generate only one web page. It can be the frameset page, or some other page. It can not possibly generate more than one output HTML page.
 
Framesets should be avoided. Using frames is an obsolete concept from about 10 years ago, and search engines tend not to index content found on frameset pages because they are actually empty- they only reference pages elsewhere.

That said, one PHP file can generate only one web page. It can be the frameset page, or some other page. It can not possibly generate more than one output HTML page.
 
Back
Top