Quote:
|
Originally Posted by Bifta
Ah haha .. see, it's a search page for a database .. the search page creates a URL string like results.php?something=arse&somethingelse=arsetoo
need to carry the CSS details over, I populated a hidden field called "styles" with the relevant value and it carries that over in the URL but the results page doesn't know wtf "styles" is and gives me all sorts of errors, pretty sure I have to create a variable on the results page to tell the script that "styles" is something or other .. but I've no idea what
|
If you basically need to get a variable from the URL just do it like this:
PHP Code:
$styles = $_GET['styles'];
echo "<link rel=\"stylesheet\" href=\"$styles\" type=\"text/css\" />";