djpeterlewis Posted August 17, 2007 Share Posted August 17, 2007 I am in a position where I have 2 files The first one is called products.php and the second one is called products.html I have to put the products.php file in the url block for a form to work, then it must use the html to format. This works well The question is In this configuration and without joining the 2 files how do I get variables from the php file to display in the html page. These are calculated variables in php Thanks Peter Quote Link to comment https://forums.phpfreaks.com/topic/65343-please-help-a-newbie/ Share on other sites More sharing options...
jlp09550 Posted August 17, 2007 Share Posted August 17, 2007 Unless you set an Apache handler to make it parse HTML files through the PHP parser instead, I doubt it's possible. Otherwise, HTML pages will not handle PHP at all. Quote Link to comment https://forums.phpfreaks.com/topic/65343-please-help-a-newbie/#findComment-326312 Share on other sites More sharing options...
MadTechie Posted August 17, 2007 Share Posted August 17, 2007 you can't really best bet is merge the html into the php Quote Link to comment https://forums.phpfreaks.com/topic/65343-please-help-a-newbie/#findComment-326315 Share on other sites More sharing options...
djpeterlewis Posted August 17, 2007 Author Share Posted August 17, 2007 I have tried to merge the 2 but I have found that there are problems in doing so. As it was written in codecharge studio , how do I remove the references to the html file. There is the following //Initialize Page @1-6A6E3D04 // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = "main"; $ComponentName = ""; // Events; $CCSEvents = ""; $CCSEventResult = ""; $FileName = "product.php"; $Redirect = ""; $TemplateFileName = "product.html"; $BlockToParse = "main"; $TemplateEncoding = ""; $FileEncoding = ""; $PathToRoot = "./"; //End Initialize Page I tried to comment it out and put the php code into the body of the html but then the form that is the payment form did not work. It was as if I did products.html rather than products.php If you want to view the site http://www.gr8matches.com/products.php thanks peter Quote Link to comment https://forums.phpfreaks.com/topic/65343-please-help-a-newbie/#findComment-326342 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.