Jump to content

[SOLVED] Is this a concern??


Kryllster

Recommended Posts

I have recently been working with smarty and learning some new stuff like switch and _GET. The problem is when I go to validate my pages I get this error:

 

Deprecated method document.getSelection() called.  Please use window.getSelection() instead.

 

Is this a concern to anyone or is it just a bunch of bunk and if not how do I fix it? I cant find anything on google about the second one. Except that people are reporting it but no solution?

 

Thoughts, solutions??

Thanks in advance,

 

Link to comment
Share on other sites

<?php
//Include page header
include('includes/header.php');

include('includes/navigate.php');

//Get the page variable
$page = $_GET['dune'];

//Our switch statement to get the right content
switch($page) {
case "home": //For each page of content just add a case block
$content = "includes/home.php"; //The file with the page contents. DO not include the header and footer HTML in these files it is already added.
break; //Stop the case block, if you do not have this you will get an error.

case "home":
$content = "includes/home.php";
break;

case "about":
$content = "includes/about.php";
break;

case "quotes":
$content = "includes/quotes.php";
break;

case "graphics":
$content = "includes/graphics.php";
break;

case "protocol":
$content = "includes/protocol.php";
break;

default: //If the variable didn't match any of the above cases do this.
$content = "includes/home.php";
break;
}

//Include the selected content.
include($content);

//Include page footer
include('includes/footer.php');
?>

 

Is this javascript??

Just wondering??

This is the code im using

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.