Enviado em 18/11/2017 - 10:52h
Estou desenvolvendo uma aplicação em PHP porém não estou entendo porque não estou conseguindo cadastrar no banco utilizando o PHP.
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-success"">Cadastrar</button>
</div>
</div>
<?php
session_start();
include_once("../../../security.php");
include_once("../../../connection.php");
$namet = $_POST['name'];
$emailt = $_POST['email'];
$logint = $_POST['login'];
$passwdt = $_POST['passwd'];
$access_level_idt = $_POST['access_level_id'];
$query = mysql_query("INSERT INTO user (name,email,login,passwd,access_level_id) VALUES ('$namet,''$emailt,'$logint','$passwdt','$access_level_idt')");
if (mysql_affected_rows() != 0) {
header("Location: ../list_users.php");
} -->
?>
Notice: Undefined index: name in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 7
Notice: Undefined index: email in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 8
Notice: Undefined index: login in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 9
Notice: Undefined index: passwd in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 10