PDA

View Full Version : hidden input and quotes


Lionel
02-14-2007, 11:37 PM
Hi,

How do we deal with hidden input and single quotes, double quotes?

<input type=\"hidden\" name=\"mplot\" value=\"".addslashes($mplot)."\">

does not seem to work

Adrian Schneider
02-15-2007, 04:31 AM
You are missing the backslash before your first double quote. I assume the whole thing is being parsed in double quotes?

Lionel
02-15-2007, 04:33 AM
Thanks. I handled it differently as I had apostrophes in there too.