How do I insert the Dhtml code into the PHP block?
I keep getting a Syntax error so I feel I should be enclosing the DHTML code in some way?
My code follows:
<body class="thrColFixHdr">
<!--Show pop up if not shown previously-->
<?php
if (!$_COOKIE['show']) {
set_cookie("show","1");
<div id="apDiv1">
<div style="background-color:#FFCC66; border:dashed; border-color:#993333;" class="textCtr">
<p class="textGreenCtr">Sign up now to our Marketing Property newsletter.</p>
<p class="textGreenCtr">
You will
receive marketing tips and information on<br />
marketing property here in Thailand<br />
to help you sell more homes!<br />
Aimed at developers of all sizes<br />
the range of topics covered includes; <br />
marketing, sales, legal & contractual advice, <br />
property ownership structures, tax planning, accounting, <br />
business administration, company formations, etc...</p>
<p><a href="http://www.1st-choice-homes.com/newsletter/?p=subscribe&id=2"><img name="freeTips" src="images/freeTips Org.gif" width="150" height="120" border="0" id="freeTips" alt="Marketing Property" /></a></p>
<p>Receive a FREE report showing<br />
you how to prepare<br />
a full marketing plan<br />
for your development! </p>
<p class="smallCtr">[<a href="#" onclick="MM_effectAppearFade('apDiv1', 2000, 100, 0, false)">Close Window</a>]<br />
</p>
</div>
</div>
}
?>
<!--End of pop up-->
Error message:
Parse error: syntax error, unexpected '<' in c:\wamp\www\htdocs\1st-choice-thailand\index.php on line 37
Line 37 = <div id="apDiv1"> above
Thanks for your help so far.
Mitch