Commit 70661721 by Ryo

Updated user_flight_search.php and user_login.php

parent 35e77e94
Showing with 13 additions and 447 deletions
......@@ -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-instagram fa-2x"></i></a>
</div>
<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="username" placeholder="username Address" type="username" name="username" tabindex="2" required/>
<input id="password" placeholder="Password" type="password" name="Password" tabindex="2" required/>
<input type="submit" name="submit" value="Register"/>
</form>
<?php
#echo "Insert new user";
// 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>";
include('php_files/userlogin_database.php')
?>
</div>
......@@ -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-instagram fa-2x"></i></a>
</div>
<input id="username" name="username" placeholder="Username" type="email">
<input id="password" name="password" placeholder="Password" type="password">
<input name="submit" type="submit" class="button7" value=" Login ">
<span><?php echo $error; ?></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment