How do you make your very own search bar and how do you utilize it on your page?

KeybladeSephi

New Member
Messages
19
Reaction score
0
Points
0
Hello everyone; I would like to know how to create a search bar (not one acquired from Google, or anywhere else) and how to utilize it on your page. Could someone please give me some code to show me how to create a search bar? Furthermore, do I specifically need a .php page for it to function properly? Thanks :happysad:
 

MasterMax1313

New Member
Messages
84
Reaction score
0
Points
0
the simplest way i could think of would be to use php's webscraping abilities to index your pages, then when a user searches for something, query against the index of pages to see if it's located anywhere, then return the results where it is located. This would be somewhat complicated, but doable. The key would be crawling across your pages. You'd have to know the structure of your pages (as in how the GETs are put together, etc.)
 

KeybladeSephi

New Member
Messages
19
Reaction score
0
Points
0
Thanks, MasterMax1313, but I am a novice at PHP. Could you please give me some code to help me understand what you are talking about? Thanks again =]
 

rockee

New Member
Messages
120
Reaction score
0
Points
0
Have you tried the search facility included in your cPanel?

Look for:
Software/Services->CGI Center->Entropy Search

Works perfectly and the code to enter in your pages is provided.

Regards,
Rocky
 
Top