Jump to content

Please help a newbie


djpeterlewis

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/65343-please-help-a-newbie/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/65343-please-help-a-newbie/#findComment-326342
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.