Page 1 of 1

Php Code In Template

Posted: Thu Nov 08, 2007 3:14 pm
by Sean
I'm simply trying to put some php code in my template and it's not working. This this is the code I'm trying to insert.

Code: Select all

<? 
setcookie ("overcookie", "cookie1");
?>
and this

Code: Select all

<?php

if ($_COOKIE["overcookie"]) {
}
else {
    echo "<div id=\"flashoverlay\" onclick=\"this.style.visibility='hidden'\"></div>";
}
?>
Any idea what i need to do to make this work?

Re: Php Code In Template

Posted: Thu Nov 08, 2007 3:22 pm
by calguy1000
a simple search on the forum or the wiki would answer this, it's been asked and answered dozens of times already.

Re: Php Code In Template

Posted: Thu Nov 08, 2007 3:49 pm
by Sean
I looked but the things I found didn't help, I found pages that told me to use {literal} tags or use cms made simple built php functions. Wha????

Re: Php Code In Template

Posted: Thu Nov 08, 2007 3:50 pm
by Sean
o ok, found something, thank you!