Many thanks for your help Vincent.
I still have bit of a problem though.
Example ...
I have 'is' in my $excwords array and this particular word is the 10th value in my array.
What is happening is that until the 'is' word is found in the string entered by the user it concatenated 'is' 9 times together - or until the it found a match.
If the word is not found in the array, then this word is concatenated together 23 times too (I have 23 words in my array and if the word in the original string is not found it repeats it 23 times because it has not found a match - but I only want it to appear once).
Basically what I am trying to do is pass a string from one page to another stripping out certains words from my array so that only the keywords are left, so I can write an SQL query based on these keywords.
Thanks for your help once again!