Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $q=$_POST['kueri'];
- if($_POST['submit'] == "Search") {
- if($q == '') {
- $q='How To Be Normal';
- }
- $q=rawurlencode($q);
- header('location:https://google.com/search?q='.$q);
- }
- ?>
- <title>Google Search</title>
- <style>
- form{
- text-align:center;
- }
- input{
- border: none;
- padding: 10px;
- margin: 10px;
- height: 40px;
- width: 500px;
- border:1px solid #eaeaea;
- outline:none;
- }
- input:hover{
- border-color: #a0a0a0 #b9b9b9 #b9b9b9 #b9b9b9; }
- input:focus{ border-color:#4d90fe; }
- input[type="submit"] {
- border-radius: 2px;
- background: #f2f2f2;
- border: 1px solid #f2f2f2;
- color: #757575;
- cursor: default;
- font-size: 14px;
- font-weight: bold;
- width: 100px;
- padding: 0 16px;
- height:40px;
- }
- input[type="submit"]:hover {
- box-shadow: 0 1px 1px rgba(0,0,0,0.1);
- background: #f8f8f8;
- border: 1px solid #c6c6c6;
- box-shadow: 0 1px 1px rgba(0,0,0,0.1);
- color: #222;
- }
- .footer{
- position: fixed;
- width: 100%;
- bottom: 0px;
- font-family: Tahoma;
- height: 20px;
- color: gray;
- font-size: 20px;
- left: 0px;
- border-top: 2px solid darkred;
- padding: 30px;
- background-color:white;
- }
- </style>
- <form method="POST">
- <center>
- <img src="https://www.betterbuys.com/wp-content/uploads/2015/06/Google-1.png" height="300px" width="300px"/>
- </center>
- <input type="text" name="kueri" placeholder="Search Something?" />
- <input type="submit" name="submit" value="Search" />
- </form>
- <div class="footer">
- <b>© Cvar1984, 2018</b>
- </div>
Add Comment
Please, Sign In to add comment