Re: [PHP] Hidden Input and Quotes?

2001-05-12 Thread Christian Reiniger
On Saturday 12 May 2001 04:20, Young Chi-Yeung Fan wrote: If you have input type=hidden name=data value=The word quot;herequot; is in quotes. /, then when you submit your form, $HTTP_POST_VARS[data] or $HTTP_GET_VARS[data] will be: The word \here\ is in quotes. So you can put the value

[PHP] Hidden Input and Quotes?

2001-05-11 Thread Jason Caldwell
If I have a text box and enter data into that text box with quotes around some of the text... and I want to throw that text into a HTML Hidden Input Field (on my next screen for example) -- the quotes will somehow jackup or truncate that text... because HTML uses quotes within in the Hidden Input

Re: [PHP] Hidden Input and Quotes?

2001-05-11 Thread Sean Cazzell
So my question is, should I (or, really, can I) encode it? My thinking is I want to encode it with the htmlspecialchars() function... however, eventually, all the data within the Hidden Input Boxes will be stored into my mySQL database, so I'll want to decode it before I send it (restoring

Re: [PHP] Hidden Input and Quotes?

2001-05-11 Thread Young Chi-Yeung Fan
Jason Caldwell wrote: If I have a text box and enter data into that text box with quotes around some of the text... and I want to throw that text into a HTML Hidden Input Field (on my next screen for example) -- the quotes will somehow jackup or truncate that text... because HTML uses quotes

Re: [PHP] Hidden Input and Quotes?

2001-05-11 Thread Young Chi-Yeung Fan
Jason Caldwell wrote: The quot; will be translated back into when your form is submitted. ?? I don't have to convert back?? -- when I eventually submit my Hidden Input Fields into my mySQL DB, they'll be converted back to ? Confused If you have input type=hidden name=data