-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.php
More file actions
executable file
·85 lines (76 loc) · 1.6 KB
/
signup.php
File metadata and controls
executable file
·85 lines (76 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
ini_set('display_errors',1);
ini_set('display_startup_erros',1);
error_reporting(E_ALL);
session_start();
include"db.php";
if(isset($_POST['user']) && ($_POST['user'] != '')){
$user=array();
$user['user']=trim($_POST['user']);
if(isset($_POST['nome'])){
$user['nome']=trim($_POST['nome']);
}else{
$tarefa['nome']= '';
}
if(isset($_POST['email'])){
$user['email']=trim($_POST['email']);
}else{
$user['email']= '';
}
if(isset($_POST['regpasswd'])){
$user['paswd']=md5($_POST['regpasswd']);
}
if(isset($_POST['tel'])){
$user['tel']=trim($_POST['tel']);
}else{
$user['tel']='';
}
if(isset($_POST['cpf'])){
$user['cpf']=trim($_POST['cpf']);
}else{
$user['cpf']='';
}
if(isset($_POST['rg'])){
$user['rg']=trim($_POST['rg']);
}else{
$user['rg']='';
}
if(isset($_POST['country'])){
$user['country']=trim($_POST['country']);
}else{
$user['country']='';
}
if(isset($_POST['uf'])){
$user['uf']=trim($_POST['uf']);
}else{
$user['uf']='';
}
if(isset($_POST['cep'])){
$user['cep']=trim($_POST['cep']);
}else{
$user['cep']='';
}
if(isset($_POST['city'])){
$user['city']=trim($_POST['city']);
}else{
$user['city']='';
}
if(isset($_POST['logr'])){
$user['logr']=trim($_POST['logr']);
}else{
$user['logr']='';
}
if(isset($_POST['nlog'])){
$user['nlog']=trim($_POST['nlog']);
}else{
$user['nlog']='';
}
if(isset($_POST['bairro'])){
$user['bairro']=trim($_POST['bairro']);
}else{
$user['bairro']='';
}
registerUser($con, $user);
}
include"cadastro.php";
?>