Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. include 'dbconnect.php';
  5.  
  6. $searchprofile= strip_tags($_POST['searchprofile']);;
  7.  
  8. if (isset($_POST["searchprofile"])) {
  9. $row = $dbCon->query("SELECT username FROM co WHERE username = '".$searchprofile."'");
  10. if(!isset($row)) {
  11. echo "<font face=alef color=white><center><h1>sorry! we can't find this user.</font></h1></center>";
  12. }
  13. else
  14. {
  15. header("Location: $searchprofile.php");
  16. }
  17. ?>
  18.  
  19. <html>
  20. <body background="https://i.imgsafe.org/08e3a663f3.jpg">
  21. <head>
  22. <title> home </title>
  23.  
  24. <form action="" method="post">
  25. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="searchprofile" placeholder="find a user profile" style=
  26. "width: 7.5%;
  27. padding: 10px 16px;
  28. margin: 8px 0;
  29. display: inline-block;
  30. border: 1px solid #ccc;
  31. border-radius: 4px;
  32. box-sizing: border-box;"> </h3>
  33. &nbsp;
  34. <input type="submit" name="search" value="SEARCH" style="background-color: #ff8000; /* Green */
  35. border: none;
  36. color: white;
  37. padding: 6px 11px;
  38. text-align: center;
  39. text-decoration: none;
  40. display: inline-block;
  41. font-size: 18px;
  42. border-radius: 4px;">
  43. </font>
  44. </head>
  45.  
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement