Re: displaying info in a form
| From: | Paul Burney | Date: | Fri, 29 Mar 2002 16:55:34 +0000 |
| Subject: | Re: displaying info in a form | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18037@lists.php.net to get a copy of this message | ||
on 3/29/02 10:54 AM, Natividad Castro at ncastro@cots.com appended the
following bits to my mbox:
> I'm trying to display data in a form, but for some reason I can display the
> entire value of every field that has more than two words in the text box.
> For example, if I want to display the name CASTRO TRUCKING, the text field
> only display the first word CASTRO.
> <td><input type=text value=<?php echo $name ?>>
Just following up on what someone else said. If the Name field has a quote
in it, such as <<Joe's "Amazing" Truck Company>> that could also cause
problems.
To remedy, do this:
<input type="text" value="<?php echo htmlspecialchars($name); ?>">
HTH,
Paul Burney
http://burney.ws/
<?php
while ($self != "asleep") {
$sheep_count++;
}
?>