How do you redirect a user if they have previously visited?

Redirecting a user if they've already filled out a form

Using PHP you can check to see if a person has previously completed a form on a PURL.  For example, say that you wanted to redirect a user to a different page if they already filled out their address.  You would do something like this:

<?php
if(isset($visitor->address) header('Location:<a href="http://www.yoursite.com/new_page.html">http://www.yoursite.com/new_page.html</a>');
?>
	

This specific piece of code would check to see if the current visitor has an address value and redirecting them to "yoursite.com" if they do. You would place this code in your landing page's index.php file, just under the existing "PURL PAGE" code at the top of the page.