In article <e5daa16c.0410301253.2acbda4@posting.google.com> ,
nosendjunk@msn.com enlightened us with...[color=blue]
> Would there ever be any problems with the following script depending
> on what type of characters are in the text string?[/color]
Yes. You have to URL encode any value you send IF you're forming the URL
yourself instead of using GET for a form.
The ampersand would be a very big problem. It's a field separator for form
values.
If you use a form and use GET, it automatically encodes the values and puts
them in the URL. I find this way to be the safest and easiest way to handle
querystring params with unknown values, myself.
You could just open a new window and set that as the target to a form and
submit the form onclick instead of what you're currently doing.
HTH
--
--
~kaeli~
To steal ideas from one person is plagiarism; to steal from
many is research.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace