--- j0hncage <[EMAIL PROTECTED]> wrote:

> --- In [email protected], James Keeline <[EMAIL PROTECTED]> wrote:
>  
> <input type="text" name="beltsize" value="<?php echo
> htmlentities($beltsize);> ?>">
> > you should have better success.
> > 
> > James
> >
> 
> Looks like that did the trick very nicely, James. Thank you very much.
>  Is there any reason why a person shouldn't use that approach on each
> update field to help ensure data integrity?  (Just thinking that if
> somehow another foot (') or inch (") character found it's way in there
> on an update, I could be looking at the same thing somewhere else).
> 
> Guess if there's no downside to the approach above, I might use that
> for each update field.
> 
> John

The special characters (HTML entities) include characters with accents, etc. 
It can be a good way to handle things but can take a bit more room than the
equivalent in UTF-8 encoding.  Searches are tricky too since not everyone types
the accents.

James

Reply via email to