<?php if (isset($_COOKIE['letter'])) { setcookie("letter", "yes"); } else { echo '<script language=javascript>window.location.href = "http://www.pounderpits.com/letter"<script>'; } ?>
Can you see anythign wrong with this script?
Hi,
hard to guess anything since you didn't write what exactly you want to do but maybe
if (!isset($_COOKIE['letter']))
Thomas
sorry, If the cookie is set, do nothing... I reset the cookie to fill whitespace, but you can only do that before html code... I had it in the middle of the html....
if the cookie isn't set, redirect the page using javascript...
So ... the problem is solved ? If yes, mark this thread as resolved.
I need to check it out still. there's a bit of activity on my site right now... And the line that had a problem was the first line the if statement...
But I'll keep you informed!