My PHP code is making my browsers crash
Posted: Mon Mar 09, 2009 12:21 pm
Hi,
I'm developing a website and I have some php code that makes the main content area of the page change while leaving all other parts of the website as is.
The problem is that this code makes Safari and IE crash, it makes Opera display the page all screwed up and then makes it crash and it makes Chrome really slow.
Here's the code..
<?php
//If is defined URL variable 'signup'
if(isset($_GET['signup'])){
// include page signup
include('include/in-signup.php');
//else if is defined URL variable 'login'
}else if(isset($_GET['login'])){
// include page login
include('include/in-login.php');}
//else if is defined URL variable 'about'
else if(isset($_GET['about'])){
// include page 'about'
include('include/in-about.php');}
// in all other cases include the home page
} else {
include('include/in-home.php');
}
?>
I have included this code into the main content area of the page.
Can anyone please help?
I'm developing a website and I have some php code that makes the main content area of the page change while leaving all other parts of the website as is.
The problem is that this code makes Safari and IE crash, it makes Opera display the page all screwed up and then makes it crash and it makes Chrome really slow.
Here's the code..
<?php
//If is defined URL variable 'signup'
if(isset($_GET['signup'])){
// include page signup
include('include/in-signup.php');
//else if is defined URL variable 'login'
}else if(isset($_GET['login'])){
// include page login
include('include/in-login.php');}
//else if is defined URL variable 'about'
else if(isset($_GET['about'])){
// include page 'about'
include('include/in-about.php');}
// in all other cases include the home page
} else {
include('include/in-home.php');
}
?>
I have included this code into the main content area of the page.
Can anyone please help?