Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'dbconnect.php';
- $searchprofile= strip_tags($_POST['searchprofile']);;
- if (isset($_POST["searchprofile"])) {
- $row = $dbCon->query("SELECT username FROM co WHERE username = '".$searchprofile."'");
- if(!isset($row)) {
- echo "<font face=alef color=white><center><h1>sorry! we can't find this user.</font></h1></center>";
- }
- else
- {
- header("Location: $searchprofile.php");
- }
- ?>
- <html>
- <body background="https://i.imgsafe.org/08e3a663f3.jpg">
- <head>
- <title> home </title>
- <form action="" method="post">
- <input type="text" name="searchprofile" placeholder="find a user profile" style=
- "width: 7.5%;
- padding: 10px 16px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- border-radius: 4px;
- box-sizing: border-box;"> </h3>
-
- <input type="submit" name="search" value="SEARCH" style="background-color: #ff8000; /* Green */
- border: none;
- color: white;
- padding: 6px 11px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 18px;
- border-radius: 4px;">
- </font>
- </head>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement