I'm making a custom search for my website, the search result are link to other pages along with specific id (div id="")
, so that can navigate that div to top of web page. I can not simply use something like www.mysite.com/faq.php#divid
, since I have to also pass(using$_GET
variable) some variables also to highlight search text on the target webpage. Is there any way that I can pass search highlighting values and navigate that div to the top of page. I cannot use SESSION varible also, since the search result will have number of different results.
my link will be likehttp://www.example.com/faq.php?keyword=somekeyword&divid=q6