Jump to content

[SOLVED] Slight change in code, now I have blank page why?


dmccabe

Recommended Posts

I have been working on a corporate intranet for the company I work for and up until today it only had one page, so today I went about adding some new pages I was working on and made a change to the index.php (main page) and now it comes up blank?

 

Old Code:

<?php

$title = $title."Home";
include('header.php');


if (isset($_GET['page']) && $_GET['page'] == 'corpaccount') {
include('callcentre/corpaccount.php');
} else {


?>
<br />Welcome to the 1car1 index page<a href="#">blah</a>

<?php
}
//include('footer.php');
?>

 

New Code:

<?php

$title = $title."Home";
include('header.php');


if (isset($_GET['page'])) {
if ($_GET['page'] == 'callcentre_corpaccount') {
	include('callcentre/corpaccount.php');
}
elseif ($_GET['page'] == 'it_new_user') {
	include('it/new_user.php')
}
} else {


?>
<br />Welcome to the index page<a href="#">blah</a>

<?php
}
//include('footer.php');
?>

 

why the blank page?

 

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.