我必须在php中通过POST方法连接一个科目的用户注册,老师给了我们做这件事的php代码,但它不起作用.IḿUsing Linux.
这是表格,registro.html
元:
<form action="registro.php" method="POST">
<h1>Registro</h1>
<label for="name">Nombre</label>
<div><input type="text" name="nombre" id="nombre" placeholder="Nombre"></div>
<label for="name">Apellido Paterno</label>
<div><input type="text" name="name" id="" placeholder="Apellido Paterno"></div>
<label for="name">Apellido Materno</label>
<div><input type="text" name="name" id="" placeholder="Apellido Materno"></div>
<label for="name">Edad</label>
<div><input type="text" name="name" id="" placeholder="Edad"></div>
<label for="name">Numero de telefono</label>
<div><input type="text" name="name" id="" placeholder="Ej.33 1234 5678"></div>
<label for="name">Codigo Postal</label>
<div><input type="text" name="name" id="" placeholder="Ej. 12344"></div>
<label for="name">Correo electronico</label>
<div><input type="text" name="correo" id="" placeholder="Ej. hola@gmail.com"</div>
<label for="name">Contraseña</label>
<div><input type="password" name="contrasena" id="" placeholder="*********"></div>
<button>REGISTRAR</button>
</form>
但在提交后,我收到了错误405.