Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------HTML-------------------------------------------------------------------
- <html>
- <head>
- <link rel="stylesheet" href="style.css">
- <title>
- Website Checker
- </title>
- </head>
- <script>
- function Check(form)
- {
- var x=form.Website.value;
- //alert(x);
- window.open(x);
- }
- </script>
- <body>
- <form method="POST" action="websitecheck.php">
- Website:<br>
- <input type="Text" name="Website"><br>
- <input type="Submit" name="Sub1" value="Search" Onclick="Check(this.form)">
- </form>
- </body>
- </html>
- -----------------------------------------------------------CSS-------------------------------------------------------------------------
- input[type=text], select
- {
- width: 75%%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- border-radius: 4px;
- box-sizing: border-box;
- }
- input[type=submit] {
- width: 50%%;
- background-color: #0099ff;
- color: white;
- padding: 14px 20px;
- margin: 8px 0;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- }
- ------------------------------------------------------------Php------------------------------------------------------------------------
- <?php
- $servername="10.10.81.61";
- $username="root";
- $pass="Adroit098";
- $dbname="website";
- $query= mysqli_connect($setvername,$username,$pass,$dbname);
- if (!$query) {
- die("Connection failed: " . mysqli_connect_error());
- }
- else
- {
- echo "Connection made";
- }
- ?>
Add Comment
Please, Sign In to add comment