I have tried to write scripts or to find a php function to let the following work but I have not found any functions or clue for three weeks.
Several sentences are stored in MySQL and after displaying one of the sentences in "textarea", a user selects a word of the sentence by mouse. The word is highlighted. Then when a button is clicked, the word is passed to php. For example, the sentence is like "Rome was not built in a day.". The word "built" is selected by mouse and php will receive the word "built". PHP does not know which word is selected before a button is clicked.
Regards,
minoru