I have some text I want to print out as a value for an input field, I can do this just fine for textareas whatever the text
<textarea ...>$var</textarea>
for example, but if I try to do it as a value in an input box
<input type='text' ... value='".$var."'> then it stops after showing any special character, such as '
So
"I'd like to" becomes "I" and then nothing else appears
I tried the normal addslashes\htmlspecialchars to get it to work but the same thing happens every time, anyone know of a way to get around with without using textareas? The system is a polling system, and I really don't want to give admins unlimited length when typing questions and answers to then have to error check the length on submission or (even worse), use the dreaded Javascript!
Thanks for any help