Skip to content Skip to sidebar Skip to footer

Search Multiple Sites With One Input Field

how about when you down vote something you leave a comment on why you down voted so the poster has an idea how they can improve on the way they asked something So I have an input f

Solution 1:

A simple solution will be getting the value of the posted input field and just echoing out .Before that you must add a submit button at the end of your form.

<inputtype="submit" name="submit" value="Search"/>

And then do something like below in your search.php file.

<?php// Check if the submit button is clickedif(isset($_POST['submit'])) {
            // And then do somethingecho'Not happy with your results?<a href="http://google.com'.$_POST['query'].'">Try searching on google.</a>";

            }
        ?>

Post a Comment for "Search Multiple Sites With One Input Field"