I have a form which when submitted sends a user to save.php and at the bottom of that it's got a
header("LOCATION: index.php);
on it which takes a user back to the form.
What I want to tell if a user has come from save.php or via my form direct!
<?php if (isset($_SERVER['HTTP_REFERER']) == "submit.php"){ ?>
does not seem to work as when i ecgo HTTP_REFERER I get index.php
how can I do this?