Errnest
Thanks. I used htlmentities and still have the truncation.
Mike
---
Ernest E Vogelsinger wrote:
At 22:04 17.02.2003, Michael Eacott said:
--------------------[snip]--------------------
When I have the following in a form:
<?php $testvar = "a b c"; ?>
<input type="text" size=20 name=testvar value=<?php echo $testvar; ?>>
the value shown in the form field is a and not a b c
why?
and how can I get to see the untrucated text, please?
--------------------[snip]--------------------
You should always place quotes around the "Value" parameter;
<input type="text" size=20 name=testvar value="<?php echo $testvar; ?>">
Additionally you should always htmlencode the value parameter:
<input type="text" size=20 name=testvar
value="<?php echo htmlentities($testvar); ?>">