Form string with '&' sign
Posted: Mon Nov 17, 2008 8:26 am
Hi,
I am using a form to capture user input. I have noticed that if the user includes the '&' sign in an input string in causes a termination of the data string which is sent to the target script.
For example if the input was: "This is a test of the & sign"
The variable receiving this string would read as: "This is a test of the"
Is it first necessary to encode the string?
Thanks in advance,
Rob.
I am using a form to capture user input. I have noticed that if the user includes the '&' sign in an input string in causes a termination of the data string which is sent to the target script.
For example if the input was: "This is a test of the & sign"
The variable receiving this string would read as: "This is a test of the"
Is it first necessary to encode the string?
Thanks in advance,
Rob.