Jump to content

My PHP code is making my browsers crash


b3pot6

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/148634-my-php-code-is-making-my-browsers-crash/
Share on other sites

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.