But if you want user give some data you must create a form first, with fields (maybe text) then send that form to a new page maybe a result page. In that page you can use the code above. If you want a link to "extend" information, then you will need another "detail" page.
Then you can resolve your problem with 3 pages or with 1 page and two i-frames (all in D.H.E.)
If you want store results, search and show a master detail, try using PHP/MySQL or ASP/Access to solve the problem.