I'm new at php and I'm trying to figure out of this is a bad idea or a security risk.
I have a table of data that I provide to a user, it has a default stylesheet that it loads, but if the user wants to include their own, I've made it so they can just point to their stylesheet instead:
http://www.mysite.com/info.php?css=http://www.someothersite.com/mystylesheet.css
I've tried adding closing style tags and javascript in the css file, but the DOM seems to just load it as CSS that it isn't able to process.
I've never seen any other site allow this method of adding stylesheets, so, is this a good idea or bad idea? I was thinking that I could have the script load the file and look for key words used in javascript, but with my testing, I'm not sure that I need to do it.
Update: I'm adding the CSS as follows:
<link href="<?php echo (isset($_GET['css'])) ? $_GET['css'] : 'default.css'; ?>" rel="stylesheet" type="text/css" />