{"code":"MethodNotAllowedError","message":"POST is not allowed"}

来源:2-7 用户管理之添加用户

慕运维6045466

2019-03-02 15:37

<!doctype html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

<style type="text/css">

body {

    background-image: url("pic/main_background_color.jpg");


}


</style>

</head>


<body>

<form action="doAction.php?act=adduser"method ='post'>

<img src="logo.jpg" width="625" height="180" alt=""/>

<div align="center">

<h1 style="color: aliceblue;position:relative;top:70px;font-size: 60px" >用户注册</h1></div>

<div align="center">

  <h3 style="color: aliceblue;position:relative;top:70px;font-size: 60px" >&nbsp;&nbsp;&nbsp;&nbsp;姓名:

    <input type="text" name= "stuName" id="btn" value="" placeholder="姓名" required='required' style="position: relative;top: 0px;width: 400px;height: 60px;font-size: 60px;color: #000000;background: #FCFCFC;">

  </h3>



  <h3 style="color: aliceblue;position:relative;top:70px;font-size: 60px" >&nbsp;&nbsp;&nbsp;&nbsp;学号:

    <input type="text" id="btn" name= "stuID" value="" placeholder="学号" required='required' style="position: relative;top: 0px;width: 400px;height: 60px;font-size: 60px;color: #000000;background: #FCFCFC;">

  </h3>


<h3 style="color: aliceblue;position:relative;top:70px;font-size: 60px" >&nbsp;&nbsp;&nbsp;&nbsp;密码:

    <input type="password" name= "stuPwd" id="btn" value="" placeholder="密码" required='required' style="position: relative;top: 0px;width: 400px;height: 60px;font-size: 60px;color: #000000;background: #FCFCFC;">

  </h3>



  <h3 style="color: aliceblue;position:relative;top:70px;font-size: 60px" >身份证:

    <input type="text" name= "stuRID" id="btn" value="" placeholder="身份证" required='required' style="position: relative;top: 0px;width: 400px;height: 60px;font-size: 60px;color: #000000;background: #FCFCFC;">

  </h3>

</div>

<div align="center">

<input type="submit" value="提交" style="position: relative;top: 80px;left: 0px;width: 200px;height: 80px; background: #FFFFFF;font-size: 50px">

<a href="main.html">

<input type="button" value="返回"  class="inputbox" style="position: relative;top: 80px;left: 0px;width: 200px;height: 80px; background: #FFFFFF;font-size: 50px"></a></div>

<script type="text/javascript" >

var oBtn = document.getElementById('btn');

var k=0;

function apply(){

}


</script>

</body>

</html>


写回答 关注

2回答

  • 慕梦前来
    2022-04-22 20:23:06

    方法的类型不对

  • 慕梦前来
    2020-09-05 20:08:13

    type类型有问题,

Duang~MySQLi扩展库来袭

本教程从面向对象和面向过程两个方面为你开启MySQLi学习之旅

28645 学习 · 181 问题

查看课程

相似问题