代码如下: button class="button_1" id="save_btn" ontouchstart="" onclick="save()" 报名/button script type="text/javascript" function save(){ alert ("77"); var _nick=_._trim($("dt_join_form_nick").value);//姓名 var _phone=_._trim($("dt_join
代码如下:
function save(){
alert("77");
var _nick=_._trim($("dt_join_form_nick").value);//姓名
var _phone=_._trim($("dt_join_form_phone").value);//手机号
var _note=_._trim($("dt_join_form_note").value);//备注
alert(getParam("db"));
$.post('sa1.php', { id: 34 },function (text, status) { alert(text); });
alert("sdfds");
}
立即学习“PHP免费学习笔记(深入)”;
点击按钮时向sa1.php传值,
sa1.php:
file_put_contents("log.html",date('Y-m-d H:i:s ').$_POST["id"]."
",FILE_APPEND); printf("4353");
?>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号