Guest User

WebChecker HTML, CSS and php

a guest
Jun 1st, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.50 KB | None | 0 0
  1. ----------------------------------------------------------------HTML-------------------------------------------------------------------
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="style.css">
  5. <title>
  6. Website Checker
  7. </title>
  8. </head>
  9. <script>
  10. function Check(form)
  11. {
  12.     var x=form.Website.value;
  13.     //alert(x);
  14.     window.open(x);
  15. }
  16. </script>
  17. <body>
  18.     <form method="POST" action="websitecheck.php">
  19.         Website:<br>
  20.         <input type="Text" name="Website"><br>
  21.         <input type="Submit" name="Sub1" value="Search" Onclick="Check(this.form)">
  22.     </form>
  23. </body>
  24. </html>
  25.  
  26. -----------------------------------------------------------CSS-------------------------------------------------------------------------
  27. input[type=text], select
  28. {
  29.     width: 75%%;
  30.     padding: 12px 20px;
  31.     margin: 8px 0;
  32.     display: inline-block;
  33.     border: 1px solid #ccc;
  34.     border-radius: 4px;
  35.     box-sizing: border-box;
  36. }
  37. input[type=submit] {
  38.     width: 50%%;
  39.     background-color: #0099ff;
  40.     color: white;
  41.     padding: 14px 20px;
  42.     margin: 8px 0;
  43.     border: none;
  44.     border-radius: 4px;
  45.     cursor: pointer;
  46. }
  47. ------------------------------------------------------------Php------------------------------------------------------------------------
  48. <?php
  49. $servername="10.10.81.61";
  50. $username="root";
  51. $pass="Adroit098";
  52. $dbname="website";
  53.  
  54.  
  55. $query= mysqli_connect($setvername,$username,$pass,$dbname);
  56.  
  57. if (!$query) {
  58.    die("Connection failed: " . mysqli_connect_error());
  59. }
  60. else
  61. {
  62.     echo "Connection made";
  63. }
  64.  
  65. ?>
Add Comment
Please, Sign In to add comment