Truncated text box - PHP
Hello everyone,
Having a problem with one of my text boxes and the displayed value being truncated.
<input name="Comments" id="Comments" type="text" value="<?php echo htmlspecialchars($row_orderComments['PPassValue']); ?>" />
Text is displayed right up to the first space character and then nothing...
I have several other text boxes on the same page with no issues so I'm a bit perplexed as to why this one is being truncated.
I added the htmlspecialchars after doing some reading but no joy. When I view the source of the page, the entire value is written correctly in the value= field but its not displaying in the text box. There are no size or max char limitations. I've tested it with both fields that may have special characters and one's without any special character but still nothing.
I've also created it so it's not in a form element and it displays just fine. It's just when it's in a text box.
*scratches head*
Any help is appreciated.
Thanks,
DaK
|