There are many different options that can make life easier for your visitors on your site, in particular - the ability to search. There are several ways to create a site search function. Usually control systems are already equipped with such a function, and if you are familiar with php, then you can easily write the appropriate script. If this is not possible, then you can create a search using simple html. This will require the help of the usual search engines Yandex and Google. However, there is one caveat - this method will work on the site only if it is indexed by these systems. The results of such a search will not be displayed on your site, but on the search engine page.
Instructions
Step 1
First of all, find out the address of the search script of the search engine with which you want to organize your search.
Step 2
Our code will be four lines long. In the first line, specify the GET data transfer method and the address of the search script.
Step 3
On the second line, set the variable text, which will define the search query.
Step 4
In the third line, enter the address of the site being searched.
Step 5
The last line is the Find! Button.
In general, your code should look something like this:
A Google search works in much the same way. It is only necessary to slightly change the code of the search form. This code will look like this: