I am having some problems with If and Else. this is what I want to do:
If $somevariable = "foo" then echo "Foo is Good";
Else If
$somevariable = "page2" then echo "This is page 2";
End IF
And the code I am trying to use is this:
<?php if ($theme = "crashingwaves") {
print "Crashing Waves";
} elseif ($theme = "rose") {
print "Rose";
} elseif ($theme = "lighthouse") {
print "Light House";
} else {
print "Rocking Clock Generic";
}
?>
The page is called page1.php, and I am passing the variable in the query string like this
../page1.php?theme=crashingwaves
But on the page all i get is a printout of the first argument.
Thanks!