I'll try to clarify one more time exactly what I am trying to do. I appreciate all of your help so far! I'm just a little confused with the cookie portion of it.
The user goes to www.example.com in their browser, and they see the homepage (index.php) just like they would any website and since it is the first time they are visiting the website, they do not have access to any other part of the website until they complete the form. Upon completion of the form they are re-directed (via the form processor) to the page where they can now access all of the content on the website, keep in mind, this is not a user system where they will need to log in and out, just a way of getting the user to fill out the form so they can access content.
Now, this is where I need the help, the cookie. For example, the same user returns to the site via www.example.com a couple days later and since they already filled out the form at a prior time they are automatically redirected to the content page, which essentially is now the homepage for them. Keep in mind, the form is on the homepage (index.php), if its a first time visitor I want index.php to load just like it always would, if it's a return visitor then I want content.php to load, which is essentially the return visitors homepage.
Here is some of the code I have, so you have a reference.
This cookie retrieval string is on the index.php page right after the <body> tag
<?php
if(isset($_COOKIE['user'])) {
header ("Location: content.php");
exit();
}else{
header ("Location: index.php");
}
?>
This is the first string of code in the form processor to set the cookie (this is working)
<?php
setcookie("user", "1", time()+3600*30000, "/");
I have been testing and testing, clearing the cookie everytime, moving the spots where I am putting the cookie retrieval code in the index.php, etc. It works to set the cookie the first time, but every visit after that is either a blank page or always loading index.php