Hello all!
I'm working on a project and am completely stumped. I have one file, mainpage.cfm, that needs a page to be included that is include.php. The problem is that include.php is a dynamic page and I need to pass it a URL, which does not work for me. The URL that is passed to include.php is usually something like:
http://www.site.edu/page.php?this=that&him=male
so the include I am making in Cold Fusion looks like the following...
<CFINCLUDE TEMPLATE="include.php?site=#Site#">
this URL, when parsed then becomes
include.php?site=http://www.site.edu/page.php?this=that&him=male
If you follow, this does not parse out to the correct URL. Instead site becomes "http://www.site.edu/page.php?this=that", and then php thinks it has a variable him = male. But this is actually a critical part of the URL I am passing.
Any ideas how to circomvent this? Due to constraints I can not access the database again in the include.php file.
Is there any way to pass a variable from Cold Fusion to PHP without using the URL?
Any help appreciated.
Andrew