Problems with including php in shtml pages
Posted: Wed Jan 04, 2006 12:57 pm
on one shtml page I have something like
contents of 1.php is
contents of 2.php is
When I load the shtml page, the cookies show up as empty when I follow the links. However when I just load 1.php then the cookies are set and I can check their values fine. Am I doing something wrong?
Code: Select all
<!--#include file="1.php"-->
<a href="http://www.domain.com/2.php">test
</a></p>
<p> <a href="http://domain.com/2.php">test </a>Code: Select all
<?php
$url="sdifuudsf";
setcookie ("visitor_", "", time()-3600);
setcookie ('visitor_', $url, time() + (60*60*24),"/",".domain.com");
?>Code: Select all
$referer_url = $_COOKIE['visitor_'];
print $referer_url;