Formatting

This commit is contained in:
WilliamMiceli
2019-12-04 21:01:25 -05:00
parent 05bc90753f
commit 9088543471
2 changed files with 38 additions and 52 deletions

View File

@@ -4,39 +4,31 @@
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="styling.css">
</head>
<body>
<!--#include virtual="header.html" -->
<!--#include virtual="topNavBar.html" -->
<style>
body {
background-color: #3B5998;
}
</style>
<head>
<link rel="stylesheet" type="text/css" href="styling.css">
</head>
<body>
<!--#include virtual="header.html" -->
<!--#include virtual="topNavBar.html" -->
<h2><font color="white">Search by</h2>
<h2><font color="white">Search by</h2>
<form method="post" action="usernameSearch.php">
Username: <br><input type="text" name="username"><br>
<input type="submit">
</form>
<br>
<h2>Or</h2>
<form action="nameSearch.php" method="post">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br>
<input type="submit" class="button">
</form>
<form method="post" action="usernameSearch.php">
Username: <br><input type="text" name="username"><br>
<input type="submit">
</form>
<br>
<h2>Or</h2>
<form action="nameSearch.php" method="post">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br>
<input type="submit" class="button">
</form>
<?php
echo $name;
echo "<br>"
?>
<?php
echo $name;
echo "<br>"
?>
</body>
</body>
</html>

View File

@@ -2,29 +2,23 @@
require 'common.php';
require 'loginRequired.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="styling.css">
</head>
<body>
<!--#include virtual="header.html" -->
<!--#include virtual="topNavBar.html" -->
<style>
body {
background-color: #3B5998;
}
</style>
<head>
<link rel="stylesheet" type="text/css" href="styling.css">
</head>
<body>
<!--#include virtual="header.html" -->
<!--#include virtual="topNavBar.html" -->
<?php
echo "<br>";
$query = "Select * from contacts where username = '".$_POST["username"]."'";
<?php
echo "<br>";
$query = "Select * from contacts where username = '".$_POST["username"]."'";
foreach($db_connection->query($query) as $row){
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
}
?>
foreach($db_connection->query($query) as $row){
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
}
?>
</body>
</body>
</html>