Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Escaping Hidden Information

Quote Reply
Escaping Hidden Information
Hi,

I'm passing some text through to another page where it is being stored as a hidden field. Becuase it comes from a text block originally, I've found I have to use <PRE> tags around it so it keeps its formatting with new lines etc ( does anyone know a better way to do that?).

The problem I'm having though is if a user passes through any text that includes " or ' it breaks the tags I'm using to enclose the text, so it needs to be escaped somehow.

I read about the <%escapeURL somevar%> call in the help pages but am a little consused about how to use it, especially if the text is to be passed back to a script again and re-displayed in the original text block - does it also need to be unescaped when going back into the script again?

Can anyone help me out with this one?

Thanks
R.

Subject Author Views Date
Thread Escaping Hidden Information ryel01 1407 Sep 3, 2001, 5:42 PM
Thread Re: Escaping Hidden Information
Alex 1358 Sep 4, 2001, 10:37 AM
Post Re: Escaping Hidden Information
ryel01 1355 Sep 4, 2001, 1:41 PM