Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ruzalo
/
airline-booking
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
70661721
authored
May 07, 2020
by
Ryo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated user_flight_search.php and user_login.php
parent
35e77e94
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
447 deletions
user_flight_search.php
user_login.php
user_flight_search.php
View file @
70661721
This diff is collapsed.
Click to expand it.
user_login.php
View file @
70661721
...
@@ -55,43 +55,22 @@ if(isset($_SESSION['login_user'])){
...
@@ -55,43 +55,22 @@ if(isset($_SESSION['login_user'])){
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-twitter fa-2x"
></i></a>
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-twitter fa-2x"
></i></a>
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-instagram fa-2x"
></i></a>
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-instagram fa-2x"
></i></a>
</div>
</div>
<input
id=
"FirstName"
placeholder=
"First Name"
type=
"first_name"
name=
"First_Name"
tabindex=
"1"
required
autofocus
/>
<input
id=
"FirstName"
placeholder=
"First Name"
type=
"first_name"
name=
"First_Name"
tabindex=
"1"
required
autofocus
/>
<input
id=
"LastName"
placeholder=
"Last Name"
type=
"last_name"
name=
"Last_Name"
tabindex=
"2"
required
/>
<input
id=
"LastName"
placeholder=
"Last Name"
type=
"last_name"
name=
"Last_Name"
tabindex=
"2"
required
/>
<input
id=
"username"
placeholder=
"username Address"
type=
"username"
name=
"username"
tabindex=
"2"
required
/>
<input
id=
"username"
placeholder=
"username Address"
type=
"username"
name=
"username"
tabindex=
"2"
required
/>
<input
id=
"password"
placeholder=
"Password"
type=
"password"
name=
"Password"
tabindex=
"2"
required
/>
<input
id=
"password"
placeholder=
"Password"
type=
"password"
name=
"Password"
tabindex=
"2"
required
/>
<input
type=
"submit"
name=
"submit"
value=
"Register"
/>
<input
type=
"submit"
name=
"submit"
value=
"Register"
/>
</form>
</form>
<?php
<?php
#echo "Insert new user";
include
(
'php_files/userlogin_database.php'
)
// connect to the database
// Establishing Connection with Server by passing server_name, user_id and password as a parameter
$con
=
mysqli_connect
(
"anysql.itcollege.ee"
,
"WT16"
,
"iLtQlUerkT"
,
"WT16"
);
// Check connection
if
(
mysqli_connect_errno
())
{
echo
"Failed to connect to MySQL: "
.
mysqli_connect_error
();
}
$data
=
mysqli_query
(
$con
,
"INSERT INTO User_register (First_Name, Last_Name, username, Password)
VALUES ('
$First_Name
', '
$Last_Name
', '
$username
', '
$Password
')"
);
//mysql_query($sql1, $con);
mysqli_close
(
$con
);
echo
"Your input:::::::::<br>"
;
echo
""
.
$First_Name
.
"<br>"
;
echo
""
.
$Last_Name
.
"<br>"
;
echo
""
.
$username
.
"<br>"
;
echo
""
.
$Password
.
"<br>"
;
?>
?>
</div>
</div>
...
@@ -104,10 +83,10 @@ if(isset($_SESSION['login_user'])){
...
@@ -104,10 +83,10 @@ if(isset($_SESSION['login_user'])){
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-twitter fa-2x"
></i></a>
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-twitter fa-2x"
></i></a>
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-instagram fa-2x"
></i></a>
<a
href=
"#"
class=
"social"
><i
class=
"fab fa-instagram fa-2x"
></i></a>
</div>
</div>
<input
id=
"username"
name=
"username"
placeholder=
"Username"
type=
"email"
>
<input
id=
"username"
name=
"username"
placeholder=
"Username"
type=
"email"
>
<input
id=
"password"
name=
"password"
placeholder=
"Password"
type=
"password"
>
<input
id=
"password"
name=
"password"
placeholder=
"Password"
type=
"password"
>
<input
name=
"submit"
type=
"submit"
class=
"button7"
value=
" Login "
>
<input
name=
"submit"
type=
"submit"
class=
"button7"
value=
" Login "
>
<span>
<?php
echo
$error
;
?>
</span>
<span>
<?php
echo
$error
;
?>
</span>
...
...
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