This write with JAVAscript and read with php3 ;o}
<script language="javascript">
<!--
function SetCookie (name,value,expires,path,domain,secure) {
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
SetCookie("cooksoccer4","tot");
--></script>
<?php
if ($HTTP_COOKIE_VARS["cooksoccer4"] == "tot") {
//if ($cook == "tot") {
print "<a href=\"/newsondage/resondage.php3\" target=droite>Résulta sondage</a>";
} else {
print "<a href=\"/newsondage/sondage.php3\" target=droite>Répondez au sondage</a>";
}
?>