Hi,
I'm trying to copy data from old php files to a new php website. I'm having problems with a particular page which has a calculator form. When i ftp it to the new server it is aligning itself under the menu bar on the left instead of the middle of the page?
I've tried to centre the form in dreamweaver before uploading with no luck.😕
The old page is located herehttp://www.gridpower.com.au/services.shtml & the new page is located here http://122.252.5.130/~gridpowr/calculators.php
PHP Code used for new page is as follows;
?php
require_once("../include/config.php");
require_once($INCLUDE_LOCATION."/Page.php");
require_once($INCLUDE_LOCATION."/dealer_functions.php");
$page = new Page();
$page->setPageName("Calculators");
$page->setColumns(2);
$content = read_copy("calculators.html");
$content = preg_replace('/\{DEALERS_COUNT\}/', countDealers(), $content);
$page->setContent($content);
if ($_GET['print'] == 'yes') {
$page->setTemplate('print.html');
$page->setOnLoad(" onLoad=\"window.print()\"");
} else {
$page->setPrintControl('on');
}
echo $page->render();
?>
Any help is greatly appreciated!
Thanks,
Webb