|
Posted by Jonathan N. Little on 04/01/06 18:19
LeftHorn wrote:
> Hi,
>
> I have a problem...Got a webpage with alot of different input fields - where
> a user can maintain a database.
>
> They are allowed to use 'spaces' in their textfields, sometimes they require
> to insert a space in the end, sometimes it would be fatal if they do - the
> problem is that from a visual point of view the inputfield is like this:
>
> TextColor Black
> BackGround White
>
> Nobody are able to see how many spaces there is after a string, unless the
> cursor is placed in the field - i need somehow to get a different
> TextBackgroundColor (ex. gray) then they would be able to locate it by
> sight, instead of having to manually run through all fields.
>
> Can this be done ? by HTML or JS or something ? hope you can help.
>
>
No, that is the job for data validation...you are validating all tainted
user input BEFORE it is utilizes on the server, right?
You can use JavaScript as an optional prescreening validation, but the
bottom line server-side validation must be done on all user input.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|