Are you calling the receive.php from your <form> action statement? If so, you can check the status of your submit button. Use if (isset (submit_button_name)) or if (!isset ....
All objects on your from form will pass to the receive form including the submit button.
Basically you check for the status of the from.php submit button in receive.php. If it's set, you do your thing and then set a second variable. Include checking for that second variable to bypass any code that 'repeats' as you don't want.
Did that make any sense? hehe