Here goes the code an I am using version 4.3.1

index.html
<?
include("header.php"); // ccs, js, title, meta tags, etc

include("body.php"); // left, right columns, main center content, etc

include("footer.php"); // copyrights, privacy, legal, etc

?>



header.php
<html>

<head>

<link rel="STYLESHEET" type="text/css" href="css/styles.css">

</head>

<title>Dcomms

</title>

<body>


body.php
<?
//MAIN CONTENT INSERTION
include("main.php");
?>


footer.php
 </body>

</html>

main.php
<?
switch($link)
{
 case null: include("AdminMain.php"); break;
case 1000: include("AdminMain.php"); break;
case 1001: include("View.php"); break;
default: include("AdminMain.php");
}
?>

AdminMain.php
<?
include("../lib/mylib.php");
include("../lib/class.FastTemplate.php4");
$tpl = new FastTemplate("templates/");
$tpl->define( array( main   => "main.html",
                     middle => "AdminScreen.html",
                     dropdownrows => "dropdownrows.html",
                     rows  => "PackageRows.html",
                     AddPackageScreen  => "AddPackageScreen.html",
                     ack => "acknowledgement.html"));
$state=$HTTP_GET_VARS['state'];
if(empty($state))  {
$state=$HTTP_POST_VARS['state'];
}
$package_type=$HTTP_GET_VARS['package_type'];
if(empty($package_type))  {
$package_type="1";
}
*******************************


Hope this helps

Regards








"Mikey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Some code would be good...
>
> > -----Original Message-----
> > From: David Adade [mailto:[EMAIL PROTECTED]
> > Sent: 03 August 2003 18:16
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Notice: Undefined variable: link in
> >
> >
> > Hi
> > I am migrating scripts that are currently working on a linux box to a
> > windows 2000 box. I get the following errors when I try
> > to access the scripts
> >
> > Notice: Undefined variable: link in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2
> >
> > Notice: Use of undefined constant main - assumed 'main' in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7
> >
> > Notice: Use of undefined constant middle - assumed 'middle' in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8
> >
> >
> > I have searched the mailing list to no avail can any one help
> >
> > I am running version 4.31
> >
> > Thanks in advance
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to