Formatting
This commit is contained in:
@@ -4,39 +4,31 @@
|
|||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="styling.css">
|
<link rel="stylesheet" type="text/css" href="styling.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!--#include virtual="header.html" -->
|
<!--#include virtual="header.html" -->
|
||||||
<!--#include virtual="topNavBar.html" -->
|
<!--#include virtual="topNavBar.html" -->
|
||||||
<style>
|
<h2><font color="white">Search by</h2>
|
||||||
body {
|
|
||||||
background-color: #3B5998;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<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">
|
<?php
|
||||||
Username: <br><input type="text" name="username"><br>
|
echo $name;
|
||||||
<input type="submit">
|
echo "<br>"
|
||||||
</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>
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
<?php
|
|
||||||
echo $name;
|
|
||||||
echo "<br>"
|
|
||||||
?>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
@@ -2,29 +2,23 @@
|
|||||||
require 'common.php';
|
require 'common.php';
|
||||||
require 'loginRequired.php';
|
require 'loginRequired.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="styling.css">
|
<link rel="stylesheet" type="text/css" href="styling.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!--#include virtual="header.html" -->
|
<!--#include virtual="header.html" -->
|
||||||
<!--#include virtual="topNavBar.html" -->
|
<!--#include virtual="topNavBar.html" -->
|
||||||
<style>
|
<?php
|
||||||
body {
|
echo "<br>";
|
||||||
background-color: #3B5998;
|
$query = "Select * from contacts where username = '".$_POST["username"]."'";
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<?php
|
foreach($db_connection->query($query) as $row){
|
||||||
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";
|
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
?>
|
</body>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user