I have the following ASP lines I need to convert to PHP for my new site:
<%
Dim skin
skin = Request.Cookies("skin")
If skin = "" Then
skin = "default"
End If
%>
<link rel="stylesheet" type="text/css" href="css/<%=skin%>.css" id="skin" />
I tried:
<?
$skin = Request.Cookies("skin")
If($skin==""){
$skin = "default"
}
?>
Didn't work to well. I'm not great with PHP yet.
I kept getting problems with line:
if($skin = ""){
And so I deleted all the if(){}
Then got a problem with the cookie thing.
I think maybe no Request.Cookies???
Help anyone? Thanks 🙂