Solved this issue...
I worked on it until late last night and came up with two workable options. The first, uses a preg_replace function to identify <select> and </select> options within the text, indicating where a drop down list resides. It then replaces the drop list with its own selected value. Works very well for parsing out the drop down lists in the string. The second solution involves naming each drop down list...
User Profile
Collapse
-
-
Considered the option of snagging either $_GET or $_POST variable assignments, but I am still a bit confused as to how to do it, since the variables (and their names) will change dynamically as the input text does. In other words, the number of drop down lists will match the number of misspelled words. So, if there are 10 misspelled words in the the input text, there will be 10 dropdown lists.
The problem I am facing is that unlike...Leave a comment:
-
Parsing text and drop down list values from a string
Hello folks. I am new to these forums and have something, which has been stumping me for little while.
I am using pspell to spellcheck a scrolling textbox (textarea) containing user input.
I analyze each word and rebuild the text string as a combination of correct text (not misspelled) and a drop down list offering suggestions in place of any misspelled words. Pretty common stuff using pspell.
I display...
No activity results to display
Show More
Leave a comment: