kelvinferraz
(usa Debian)
Enviado em 18/11/2017 - 12:45h
Código alterado conforme me orientou:
<?php
$name = $_POST["name"];
$email = $_POST["email"];
$login = $_POST["login"];
$passwd = $_POST["passwd"];
$access_level_id = $_POST["access_level_id"];
print_r($_POST);
session_start();
include_once("../../../security.php");
include_once("../../../connection.php");
$query = mysql_query("INSERT INTO user (name,email,login,passwd,access_level_id) VALUES ('$name,''$email,'$login','$passwd','$access_level_id')");
?>
Saída quando clico em cadastrar:
Array ( [name] => jose [email] => financeiro@nisseiautocenter.com.br [login] => jose [passwd] => 123 [access_level_id] => 2 )
Quando dou mais um enter na pagina:
Notice: Undefined index: name in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 3
Notice: Undefined index: email in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 4
Notice: Undefined index: login in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 5
Notice: Undefined index: passwd in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 6
Notice: Undefined index: access_level_id in /opt/lampp/htdocs/nisseiautocenter/modules/admin/process/proc_sub_user.php on line 7
Array ( )