Php forms can be submitted up to 3 times in 1 minute, and more than 3 times can be submitted again in 10 minutes without database.

  ios, question

Cookie or session can be used. It is better to have specific ideas and codes.

Let me give you the code

function check_allow_submit() {
    $now = time();
    if(isset($_SESSION['last_submit_time']) && !empty($_SESSION['last_submit_time'])) {
        if($now-$_SESSION['last_submit_time'] < 60*10) {
            if(isset($_SESSION['submit_times']) && $_SESSION['submit_times'] == 3) {
                return false;
            } else {
                if(isset($_SESSION['submit_times'])) {
                    $_SESSION['submit_times'] 加= 1;
                }
                return true;
            }
        } else {
            $_SESSION['last_submit_time'] = $now;
            $_SESSION['submit_times'] = 1;       
            return true;         
        }
    }
}