[讨论] get ajax怎么写回数据库

楼主: gmotwm2001 (小马怪)   2018-02-01 23:08:37
各位大大好:
我用一个htm用ajax写回到php跟数据库,原本用post但网页会产生
405 Method Not Allowed,所以改用get,但是怎样都写不回数据库
网络上找答案都找不到,麻烦各位能帮忙解答 谢谢!
sign1.htm
<html>
<script src="http://ee.nsysu.edu.tw/key/bootstrap/js/jquery.min.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div id="content_p">
<table width="600px" height="400px">
<p>姓名:<input type="text" name="name" id="name1" size="10">
<p>借用人联络电话:<input type="text" id="phone1" name="phone" size="10"></p>
<!
作者: serotw (弑龙)   2018-02-02 08:47:00
我觉得是你送出按钮语法的问号 type=submit 改成 type=button
楼主: gmotwm2001 (小马怪)   2018-02-02 09:48:00
可以了~感谢

Links booklink

Contact Us: admin [ a t ] ucptt.com