Anonymous 发表于 2022-3-25 14:40:08

php 解决和避免form表单重复提交的方法


php 解决和避免form表单重复提交的方法
<?php
session_start();
if(isset($_POST['code'])) {
    if($_POST['code'] == $_SESSION['code']){
         // 重复提交表单了
    }else{
         $_SESSION['code'] =$_POST['code']; //存储code
    }
}?>

页: [1]
查看完整版本: php 解决和避免form表单重复提交的方法