Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webisite
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stephanie.smith
webisite
Commits
1b84877a
Commit
1b84877a
authored
May 17, 2022
by
stephanie.smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php
parent
5e0d4a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
login.html
login.html
+5
-6
readdata.php
readdata.php
+14
-13
No files found.
login.html
View file @
1b84877a
...
...
@@ -19,7 +19,6 @@
<li><a
href=
"teams.html"
>
Teams
</a></li>
</ul>
</div>
<html>
<div
class=
"container vh-100"
>
<div
class=
"row justify-content-center h-100"
>
<div
class=
"card w-25 my-auto shadow"
>
...
...
@@ -29,13 +28,13 @@
<div
class=
"card-body"
>
<form
action =
"readdata.php"
method=
"post"
>
<div
class=
"form-group"
>
<label
for=
"
e
mail"
>
Email
</label>
<input
type=
"
email"
id=
"email"
class=
"form-control"
name=
"e
mail"
required
>
<label
for=
"
E
mail"
>
Email
</label>
<input
type=
"
Email"
id=
"Email"
class=
"form-control"
name=
"E
mail"
required
>
<label
for=
"
pas
s"
>
Password
</label>
<input
type=
"
pass"
id=
"pass"
class=
"form-control"
name=
"pas
s"
required
>
<label
for=
"
Passowrd
s"
>
Password
</label>
<input
type=
"
Password"
id=
"Passwords"
class=
"form-control"
name=
"Password
s"
required
>
</div>
<input
type=
"submit"
class=
"btn btn-primary w-100"
value=
"Login"
name=
""
>
<input
type=
"submit"
class=
"btn btn-primary w-100"
value=
"Login"
name=
"
submit
"
>
</form>
</div>
</div>
...
...
readdata.php
View file @
1b84877a
...
...
@@ -3,22 +3,23 @@
</head>
<body>
<?php
if
(
isset
(
$_POST
[
'
email'
],
$_POST
[
'pas
s'
])){
if
(
isset
(
$_POST
[
'
Email'
],
$_POST
[
'Password
s'
])){
$conn
=
mysqli_connect
(
'localhost:3306'
,
'stephanie.smith'
,
'0lnKdVkBKy'
,
'stephaniesmith_database
'
);
$sql
=
"INSERT INTO dataa (Email,Passwords) VALUES ('
$email
','
$pass
')"
;
$email
=
$_POST
[
'email'
];
$pass
=
$_POST
[
'pass'
]
;
$conn
=
mysqli_connect
(
'localhost:3306'
,
'stephanie.smith'
,
'0lnKdVkBKy'
,
'stephaniesmith_dataa1
'
);
$email
=
$_POST
[
'Email'
];
$pass
=
$_POST
[
'Passwords'
];
$sql
=
"INSERT INTO dataa1 (Email,Passwords) VALUES ('
$Email
','
$Passwords
')"
;
if
(
mysqli_connect_errno
())
{
echo
"Failed to connect to MySQL: "
.
mysqli_connect_error
();
}
if
(
mysqli_query
(
$conn
,
$sql
))
{
echo
"Record added"
;
}
mysqli_close
(
$conn
);
if
(
mysqli_connect_errno
())
{
echo
"Failed to connect to MySQL: "
.
mysqli_connect_error
();
}
if
(
mysqli_query
(
$conn
,
$sql
))
{
echo
"Record added"
;
}
mysqli_close
(
$conn
);
}
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment