FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
votingdevelop/index.php at master · webdeveloper606/votingdevelop · GitHub
webdeveloper606
/
votingdevelop
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
votingdevelop
/
index.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
96 lines (77 loc) · 3.33 KB
Breadcrumbs
votingdevelop
/
index.php
Copy path
File metadata and controls
96 lines (77 loc) · 3.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
86
87
88
89
90
91
92
93
94
95
96
<?php
if
(
isset
(
$
_POST
[
"
Submit1
"
])){
$
name
=
$
_POST
[
'
name
'
];
$
email
=
$
_POST
[
'
email
'
];
$
company
=
$
_POST
[
'
company
'
];
$
location
=
$
_POST
[
'
location
'
];
$
servername
=
"
localhost
"
;
$
username
=
"
root
"
;
$
password
=
""
;
$
dbname
=
"
sample
"
;
// Create connection
$
conn
=
new
mysqli
(
$
servername
,
$
username
,
$
password
,
$
dbname
);
if
(
$
conn
->
connect_error
) {
die
(
"
Connection failed:
"
.
$
conn
->
connect_error
);
}
$
sql
=
"
INSERT INTO formsample (name,email,company,location)
VALUES ('
$
name
','
$
email
','
$
company
','
$
location
')
"
;
if
(
$
conn
->
query
(
$
sql
) ===
TRUE
) {
header
(
""
);
}
else
{
echo
"
Error:
"
.
$
sql
.
"
<br>
"
.
$
conn
->
error
;
}
$
conn
->
close
();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Font Icon -->
<!-- Main css -->
<link rel="stylesheet" href="css/style.css">
</head>
<body style="background-color: #808000;">
<div class="main">
<section class="signup">
<!-- <img src="images/signup-bg.jpg" alt=""> -->
<div class="container">
<div class="signup-content">
<form method="POST" id="signup-form" class="signup-form">
<div class="form-group">
<input type="text" class="form-input" name="name" id="name" placeholder=" Name" required >
</div>
<!--<div class="form-group">
<input type="text" class="form-input" name="title" id="title" placeholder=" Title" required >
</div>-->
<div class="form-group">
<input type="email" class="form-input" name="email" id="email" placeholder="Email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" required >
</div>
<!-- <div class="form-group">
<input type="text" class="form-input" name="password" id="password" placeholder="Password"/>
<span toggle="#password" class="zmdi zmdi-eye field-icon toggle-password"></span>
</div>
<div class="form-group">
<input type="password" class="form-input" name="re_password" id="re_password" placeholder="Repeat your password"/>
</div>-->
<div class="form-group">
<input type="text" class="form-input" name="company" id="company" placeholder="Company" required >
</div>
<div class="form-group">
<input type="text" class="form-input" name="location" id="location" placeholder="Location" required >
</div>
<div class="form-group">
<input type="submit" name="Submit1" id="submit" class="form-submit" value="Submiting"/>
</div>
</form>
</div>
</div>
</section>
</div>
<!-- JS -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="js/main.js"></script>
</body><!-- This templates was made by Colorlib (https://colorlib.com) -->
</html>
Back
|
FazBrowse Home
|
New Git URL