且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取的mysql_query脚本访问PHP站点后执行30秒

更新时间:2023-11-30 12:07:58

您可以使用JavaScript,例如使用jQuery这可能看起来是这样的:

You could use javascript, for example with jQuery this might look something like:

$('#form').submit(function(e) {
    e.preventDefault(); // stop form from submitting when submit is clicked
        setTimeout(function() { // set a 30 second timer to make an ajax request to your php script
        $.ajax('mysqlscript.php');
    }, 30000);
});