Jump to content

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?

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.