Forums

ASP

This topic is locked

Converting Case of User Input

Posted 02 Sep 2001 00:05:03
1
has voted
02 Sep 2001 00:05:03 Vic Johnston posted:
I would like to know if anyone knows of any simple code for ensuring that user input in forms is converted to Capital Case as opposed to capital case or CAIPTAL CASE. Forms are being inserted into MS SQL database, and I just want to make it alittle prettier, and save myself some manual work.

All help is always appreciated

Replies

Replied 06 Sep 2001 01:58:44
06 Sep 2001 01:58:44 Waldo Smeets replied:
You could do this client side by calling a function when someone submits the form. Just have the function change all form values into uppercase values:

document.forms[0].myfield.value.toUppercase() I think.

There is also an equivalent for VBScript but I should check the books for that one.

Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic