PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I need to insert a variable into the href of the link tag to read a stylesheet. I was able to insert it and it read it ok, but ignore the format on <h1> and <div>, if I change the variable and write the correct path eveything is been formated ok. Some ideas of what Im doing wrong. Thanks so much in advanced, here is the code
The fact that hard-coding the URLs suggests to me that your cookies aren't being set properly or are expiring before they're read. Make sure you have the data you expect by printing the cookie out:
<?php
echo '<pre>'; print_r($_COOKIE['loca']); echo '</pre>';
// and just in case this comes back empty, to confirm it's empty:
var_dump($_COOKIE['loca']); // will probably show NULL
?>
I suspect you'll find a n ull value here, in which case you'll want to go look at the arguments you're passing to setcookie().
Actually the values are been pass correctly. The problem is not finding the css file, the problem is it can read it and applied it, except on the div tag and h1 tag. Thanks so much.