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
Share on other sites

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.