add this
<?php
if (!isset( $_POST[ 'submitted5' ])) {
$expire=time()-60*60*24*30;
setcookie("downloaded", "",$expire);
}
?>
before this
<?php
if ( isset( $_POST[ 'submitted5' ])) {
if you were to press F5 or press the refresh button, it will resubmit the form but once you re-enter the url, i wont show it anymore.
what i would actually do is to set a cookie when the user press download then once the user is at the downloading page, clear the cookie.
the downloading will only be displayed if cookie is set.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.