Forum Moderators: coopster

Message Too Old, No Replies

In page search

in page search

         

e_u_r_o

12:32 pm on Dec 14, 2006 (gmt 0)

10+ Year Member



Hello, anybody could help me to add some script so i can search terms of content that is in the same php page of the search? and that the result be a highlighted text, or something similar.
Thanks.

mattcg

2:02 pm on Dec 14, 2006 (gmt 0)

10+ Year Member



I think you'd be better off using Javascript, and decreasing the load on the server. Here's an example I found: [activewidgets.com...]

eelixduppy

4:09 am on Dec 15, 2006 (gmt 0)



Welcome to WebmasterWorld, e_u_r_o!

You can also use preg_replace_all [us2.php.net] to replace all found words with a highlighted version.

I haven't read the above solution, but it may also do the job.

Good luck! :)

e_u_r_o

7:54 am on Dec 15, 2006 (gmt 0)

10+ Year Member



Thank you very much, to both. I am doing some test pages, i'll let you know.

whoisgregg

2:32 pm on Dec 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Considering that every browser already has this feature, I would just educate users. :)

Command - F for Mac users
Control - F for PCs?