将数据从jquery移动页面插入数据库

将数据从jquery移动页面插入数据库,jquery,database,asp-classic,Jquery,Database,Asp Classic,请告诉我,我是一名asp.vb开发人员,是jquery mobile的新手。我有一个页面,我想使用jquery mobile将其中的数据插入ms access数据库。请问只有一个人能帮忙吗?这是我的html: <form id="form1" name="form1" method="post" action="sources/quest_rev.asp"> <table width="525" border="0" cellpadding="3" cell

请告诉我,我是一名asp.vb开发人员,是jquery mobile的新手。我有一个页面,我想使用jquery mobile将其中的数据插入ms access数据库。请问只有一个人能帮忙吗?这是我的html:

<form id="form1" name="form1" method="post" action="sources/quest_rev.asp">
          <table width="525" border="0" cellpadding="3" cellspacing="3">
            <tr>
              <td width="59"><strong>Reply</strong></td>
              <td width="445"><textarea name="reply" cols="60" id="reply"></textarea></td>
            </tr>
            <tr>
              <td><strong>Name</strong></td>
              <td><input type="text" name="uname" id="uname" /></td>
            </tr>
            <tr>
              <td><strong>Number</strong></td>
              <td><input type="text" name="unumber" id="unumber" /></td>
            </tr>
            <tr>
              <td><strong>Location</strong></td>
              <td><label for="location"></label>
              <input type="text" name="location" id="location" /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="button" id="button" value="  Send  " /></td>
            </tr>
          </table>
        </form>

回复
名称
数字
位置

提交表单时,需要向服务器发送ajax请求,然后服务器应将表单数据保存到ms access数据库中

jQuery无法将任何数据插入数据库

jQuery(function($){
    $('#form1').submit(function(){
        $.ajax({
            url: '<url>',
            type: 'POST',
            data: $(this).serialize()
        }).done(function(data){
            //do something
        });
        return false;
    })
})
jQuery(函数($){
$('#form1')。提交(函数(){
$.ajax({
url:“”,
键入:“POST”,
数据:$(this).serialize()
}).完成(功能(数据){
//做点什么
});
返回false;
})
})

这可能有助于您完成所需的操作:

请问如何拨打电话?请告诉我“”,我想“”应该有正确的插入脚本的url?示例“”。@user2522201是的,是asp页面将接收表单参数并将其插入数据库。请注意,我刚刚尝试在页面上插入脚本,并意识到当您提交页面时,该页面根本不会发布。页面保持静态,不会发生任何事情