I don't think this is the best way to do it but you can use sessions.
So add this before header
$_SESSION['Form_Submit'] = true;
header("Location: index.php");
Then wherever you don't want the user to send data again use this
if ( isset($_SESSION['Form_Submit']) )
{
exit('You\'ve already submitted this form.');
}