trihaitran 0 Light Poster

Hi I'm writing a programme that looks up data from 3 different Chinese dictionaries and then formats and displays them in html using the default browser of the system. So far it works well, but it could be better. The issue I have here is that I want each character to be hyperlinked. And then when you click the character, it run that character through the search function and display it. So basically this is what I want to do:

1) take some search input from the user through the commandline
2) search using the inputted information
3) display the results of this first search in a browser using html
4) in the display will be hyperlinked text
5) clicking on the hyperlinks will pass the hyperlinked text back to the programme to be processed by a function

I can't figure out how to accomplish step 4 and 5. Any suggestions? Here is my programme for inspection.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.