Check that target is getting passed from index.php