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
https://forums.phpfreaks.com/topic/71001-solved-is-this-a-concern/
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

You were right it was used as part of a .php script i was including from another page. I elimiated the script and now I no longer get the error.

 

Thank's

I imagine that comes from bad code but will check on it more I think after I read that book!!

 

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.