By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

how to check for duplicate words in textarea?

P: 56
I want to check duplicate word in textarea.In textarea,all words are separated by comma.No words are allowed with enter or white space.And the limit is only 7 words i want to insert.I want the code of this.Please help me.

Sep 2 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 938

Well, my question to you is what have you got so far? My approach would be to split the contents of the textarea into an array. Then loop through the array and for each word I would search the array for a match.

Have a play with the idea and post back with any questions - remember to post the code you have.

Sep 2 '08 #2

Expert 5K+
P: 5,058

We are not a code-on-demand kind of service. If you require such a service, feel free to post a job offer in the Jobs forum.
We are happy to help you solve problems you may be facing while writing your own code, but we will not write it for you.

Being a full member now, and having received warnings in the past, I expect you to have read the Posting Guidelines.
These guidelines are not optional, and we expect all members to follow them, or you may find yourself banned from these forums.
Please make sure you do so in the future.

To underline this I am going to close this thread. If you face any specific problems when attempting to solve this, feel free to post them in a new thread. (And keep the the guidelines in mind if you do!)

Thank you.
Sep 2 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.