answersLogoWhite

0

You would want to do this with an AJAX request. The Javascript on the client's browser would send a request to the server, and place the response in the appropriate div. For example, using the jQuery library, it could be done like this:

<div id="results></div>

<input type="text" id="searchstring"></input>

<button type="submit" onclick="dosearch(); return false;">Search</button>

<script type="text/javascript">

function dosearch(){

$.post('search.php', {'q' : $('#searchstring').val()}, function(answer){

$('#results').html(answer);

});

}

</script>

This takes the text out of the "searchstring" text field, posts it to "search.php", and replaces the contents of the "results" div with the resulting output. In the "search.php" file, you can read the search string from the posting - that would be $_POST['q'] - and simply output whatever results you want to display in that div.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is a results page?

A results page is the results of a search from a search engine. Also referred to as a SERP (Search Engine Results Page).


How do you pass information from search pages to results pages using php?

One way to pass information from search pages to results pages in PHP is to use query parameters in the URL. You can append the search query as a parameter in the URL of the results page, and then retrieve this parameter using PHP's $_GET superglobal array to display the relevant results. Another common method is to use sessions to store the search query information and access it on the results page.


What is the highest number of results that Yahoo or Google search can show on one page?

Organic: both Yahoo and Google return 10 search results per page. Paid: Yahoo and Google will return between 3 and 7 results in the paid area of the results page.


How many search results does Google show on each results page?

With the default settings, Google will show 10 results per page. You can, however, adjust these settings.


What does the abbreviation 'SERP' stand for?

SERP = Search Engine Results Page


What is Kyle Schmid's Facebook page?

If you go to Facebook, you can do a search for Kyle Schmid's page. Type his name in the search bar and look through the results.


What is a Google page?

A google page is a webpage that provides information from a search on Google. As such, it is a site with a lot of links of relevant search results that the user entered.


What is a webpage listed in a search results list?

A web page that appears in the serps (Search Engine Results Pages) is simply known as a "result" on the "serp"


What webpage names returned by a search engine?

Search engine provides results of the web page based on the search query or term.


Do meta tags affect how a page is displayed?

yes it does. The meta tags are the words displayed on the search engine results page.


How many results does Google show on each page?

as many as you want but the default is 10 Google can show only 10 result in a single page, which is called SERP (Search Engine Result Page) SSCSWORLD. Google show 10 results per page by default but we can get more than 100 result on per page by changing the settings of google


How do you get better search results?

Try standle, which is a search engine that combines almost all over the best search engines into 1 page. source: htttp://www.standle.com