View Single Post
Old 19-03-2004, 13:20   #9
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: PHP help needed this time :D

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\" />"; 
Richard M is offline   Reply With Quote