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
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
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
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
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
5 matches
Mail list logo